Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.079/2.079, allocations: 284.9 MB / 292.2 MB, free: 10.68 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001568/0.001567, allocations: 181.3 kB / 360.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.1 MB / 0.6188 GB, free: 12.43 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001219/0.001219, allocations: 94.75 kB / 0.7318 GB, free: 44.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.086e-05/1.096e-05, allocations: 4 kB / 0.8502 GB, free: 3.844 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5458/0.5459, allocations: 115.2 MB / 0.9628 GB, free: 78.13 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2313/0.7772, allocations: 159 MB / 1.118 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/0.7776, allocations: 88.52 kB / 1.118 GB, free: 13.52 MB / 0.7292 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd: time 0.03271/0.8103, allocations: 9.093 MB / 1.127 GB, free: 4.445 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.62e-05/0.8104, allocations: 8.531 kB / 1.127 GB, free: 4.438 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006073/0.811, allocations: 415.6 kB / 1.127 GB, free: 3.984 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.811, allocations: 8.031 kB / 1.127 GB, free: 3.977 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006302/0.8117, allocations: 51.77 kB / 1.127 GB, free: 3.926 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.812, allocations: 214.8 kB / 1.128 GB, free: 3.676 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.812, allocations: 4 kB / 1.128 GB, free: 3.672 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.494e-05/0.8121, allocations: 15.92 kB / 1.128 GB, free: 3.656 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003744/0.8125, allocations: 129.7 kB / 1.128 GB, free: 3.531 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.8129, allocations: 206.5 kB / 1.128 GB, free: 3.309 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.813, allocations: 0.8438 kB / 1.128 GB, free: 3.309 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/0.813, allocations: 0 / 1.128 GB, free: 3.309 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.703e-05/0.8131, allocations: 20.2 kB / 1.128 GB, free: 3.289 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.8145, allocations: 1.17 MB / 1.129 GB, free: 1.984 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 5.583e-05/0.8146, allocations: 26.56 kB / 1.129 GB, free: 1.949 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.861e-05/0.8146, allocations: 8.859 kB / 1.129 GB, free: 1.938 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.451e-06/0.8147, allocations: 4 kB / 1.129 GB, free: 1.934 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.8147, allocations: 30.56 kB / 1.129 GB, free: 1.895 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.8147, allocations: 0 / 1.129 GB, free: 1.895 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001847/0.8149, allocations: 58.38 kB / 1.129 GB, free: 1.832 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.8149, allocations: 55.41 kB / 1.129 GB, free: 1.766 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.8151, allocations: 137.4 kB / 1.129 GB, free: 1.621 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.756e-05/0.8152, allocations: 25.7 kB / 1.13 GB, free: 1.59 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.787e-05/0.8153, allocations: 143.3 kB / 1.13 GB, free: 1.445 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.8153, allocations: 11.81 kB / 1.13 GB, free: 1.434 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.8153, allocations: 0 / 1.13 GB, free: 1.434 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.8155, allocations: 318.8 kB / 1.13 GB, free: 1.113 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.747e-05/0.8155, allocations: 25.62 kB / 1.13 GB, free: 1.09 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.8157, allocations: 85.44 kB / 1.13 GB, free: 0.9727 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.227e-05/0.8158, allocations: 35.92 kB / 1.13 GB, free: 0.9375 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.8158, allocations: 0 / 1.13 GB, free: 0.9375 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002759/0.8161, allocations: 117.4 kB / 1.13 GB, free: 0.8164 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004094/0.8165, allocations: 0.9579 MB / 1.131 GB, free: 15.79 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.8165, allocations: 7.984 kB / 1.131 GB, free: 15.78 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.8165, allocations: 4 kB / 1.131 GB, free: 15.77 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.8167, allocations: 23.94 kB / 1.131 GB, free: 15.75 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.8168, allocations: 0 / 1.131 GB, free: 15.75 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.8169, allocations: 21.34 kB / 1.131 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.8169, allocations: 7.984 kB / 1.131 GB, free: 15.72 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/0.8169, allocations: 4 kB / 1.131 GB, free: 15.72 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001925/0.8171, allocations: 75.78 kB / 1.131 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.8171, allocations: 0 / 1.131 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.424e-06/0.8172, allocations: 4 kB / 1.131 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.8173, allocations: 31.92 kB / 1.131 GB, free: 15.61 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.8173, allocations: 4 kB / 1.131 GB, free: 15.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.33e-05/0.8174, allocations: 13.16 kB / 1.131 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.8175, allocations: 4.312 kB / 1.131 GB, free: 15.59 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.265e-05/0.8176, allocations: 116.7 kB / 1.131 GB, free: 15.47 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.8176, allocations: 11.95 kB / 1.131 GB, free: 15.46 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.8177, allocations: 20.09 kB / 1.131 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.8177, allocations: 0 / 1.131 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.8177, allocations: 0 / 1.131 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.8177, allocations: 0 / 1.131 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/0.8182, allocations: 414.5 kB / 1.132 GB, free: 14.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8182, allocations: 0 / 1.132 GB, free: 14.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.758e-05/0.8183, allocations: 7.984 kB / 1.132 GB, free: 14.97 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.8183, allocations: 4 kB / 1.132 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.8183, allocations: 0 / 1.132 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.8183, allocations: 0 / 1.132 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.8183, allocations: 1.891 kB / 1.132 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00018/0.8185, allocations: 130.1 kB / 1.132 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.25e-05/0.8186, allocations: 89 kB / 1.132 GB, free: 14.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.8186, allocations: 0 / 1.132 GB, free: 14.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.669e-05/0.8187, allocations: 6.125 kB / 1.132 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.8187, allocations: 3.906 kB / 1.132 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.8187, allocations: 4.938 kB / 1.132 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9.463e-05/0.8188, allocations: 115.2 kB / 1.132 GB, free: 14.57 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004846/0.8193, allocations: 51.78 kB / 1.132 GB, free: 14.52 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001264/0.8195, allocations: 99.25 kB / 1.132 GB, free: 14.41 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.8197, allocations: 92.78 kB / 1.132 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.8198, allocations: 0 / 1.132 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.471e-05/0.8198, allocations: 16.19 kB / 1.132 GB, free: 14.31 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.8201, allocations: 23 kB / 1.133 GB, free: 14.29 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004828/0.8206, allocations: 166 kB / 1.133 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003896/0.821, allocations: 0.7388 MB / 1.133 GB, free: 13.33 MB / 0.7448 GB Notification: Performance of SimCode: time 7.21e-07/0.821, allocations: 192 / 1.133 GB, free: 13.33 MB / 0.7448 GB Notification: Performance of Templates: time 0.0045/0.8255, allocations: 0.9505 MB / 1.134 GB, free: 12.43 MB / 0.7448 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)