Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.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_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00806/0.00806, allocations: 169.5 kB / 16.27 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.816/2.816, allocations: 473.4 MB / 0.7469 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00041/0.00041, allocations: 8.438 kB / 0.9158 GB, free: 33.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3492, allocations: 162.2 MB / 1.074 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002864/0.3521, allocations: 2.201 MB / 1.076 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3535, allocations: 0.7712 MB / 1.077 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.475e-05/0.3536, allocations: 3.938 kB / 1.077 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.3538, allocations: 23.84 kB / 1.077 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003499/0.3542, allocations: 103.6 kB / 1.077 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003239/0.3545, allocations: 103.8 kB / 1.077 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00032/0.3548, allocations: 295.2 kB / 1.078 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.3551, allocations: 187 kB / 1.078 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.036e-05/0.3552, allocations: 63.77 kB / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.3555, allocations: 91.66 kB / 1.078 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.3555, allocations: 8 kB / 1.078 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.3557, allocations: 143.7 kB / 1.078 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.723e-05/0.3558, allocations: 47.83 kB / 1.078 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.091e-05/0.3559, allocations: 89.36 kB / 1.078 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002761/0.3561, allocations: 223.5 kB / 1.078 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3562, allocations: 0 / 1.078 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3562, allocations: 0 / 1.078 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.109e-06/0.3562, allocations: 0 / 1.078 GB, free: 3.176 MB / 0.8262 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.0006315/0.3568, allocations: 427.3 kB / 1.079 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.3569, allocations: 8.031 kB / 1.079 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003571/0.3572, allocations: 48.73 kB / 1.079 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.3574, allocations: 208.1 kB / 1.079 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.3575, allocations: 12.66 kB / 1.079 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.3575, allocations: 12.36 kB / 1.079 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.3579, allocations: 233.3 kB / 1.079 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3579, allocations: 8.188 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.3579, allocations: 11.92 kB / 1.079 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.044e-05/0.358, allocations: 16.27 kB / 1.079 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.3583, allocations: 140.7 kB / 1.079 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.3593, allocations: 1.134 MB / 1.081 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.684e-05/0.3594, allocations: 42.5 kB / 1.081 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.442e-05/0.3595, allocations: 20.95 kB / 1.081 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.3595, allocations: 3.984 kB / 1.081 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.3595, allocations: 30.56 kB / 1.081 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3595, allocations: 0 / 1.081 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0001896/0.3597, allocations: 81.44 kB / 1.081 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.3598, allocations: 55.34 kB / 1.081 GB, free: 440 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.3599, allocations: 175 kB / 1.081 GB, free: 256 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.3599, allocations: 29.64 kB / 1.081 GB, free: 220 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.495e-05/0.36, allocations: 147.4 kB / 1.081 GB, free: 68 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.36, allocations: 15.75 kB / 1.081 GB, free: 52 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.3601, allocations: 21.7 kB / 1.081 GB, free: 24 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3602, allocations: 318.8 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.98e-05/0.3603, allocations: 19.98 kB / 1.081 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.095e-05/0.3603, allocations: 93.42 kB / 1.082 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001269/0.3605, allocations: 113.3 kB / 1.082 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.3605, allocations: 4 kB / 1.082 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001866/0.3607, allocations: 141.4 kB / 1.082 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.878e-05/0.3608, allocations: 157.8 kB / 1.082 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3608, allocations: 4 kB / 1.082 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3608, allocations: 0 / 1.082 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.3609, allocations: 27.92 kB / 1.082 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.3609, allocations: 7.938 kB / 1.082 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.142e-05/0.361, allocations: 27.75 kB / 1.082 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.361, allocations: 4 kB / 1.082 GB, free: 15 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.362e-06/0.361, allocations: 4 kB / 1.082 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001326/0.3612, allocations: 95.7 kB / 1.082 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.3612, allocations: 4 kB / 1.082 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.927e-06/0.3612, allocations: 4 kB / 1.082 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.992e-05/0.3613, allocations: 32.23 kB / 1.082 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3613, allocations: 4 kB / 1.082 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.234e-05/0.3613, allocations: 11.94 kB / 1.082 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3614, allocations: 4 kB / 1.082 GB, free: 14.85 MB / 0.8419 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.3615, allocations: 213 kB / 1.082 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.3615, allocations: 16.09 kB / 1.082 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.3616, allocations: 16.92 kB / 1.082 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3616, allocations: 7.984 kB / 1.082 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3616, allocations: 0 / 1.082 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3616, allocations: 7.938 kB / 1.082 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003923/0.362, allocations: 461.2 kB / 1.083 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.362, allocations: 0 / 1.083 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.17e-05/0.362, allocations: 8 kB / 1.083 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.3621, allocations: 3.938 kB / 1.083 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.3621, allocations: 4.125 kB / 1.083 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3621, allocations: 8 kB / 1.083 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3621, allocations: 3.984 kB / 1.083 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000129/0.3622, allocations: 111.5 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.3623, allocations: 100.9 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.3623, allocations: 8 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.875e-05/0.3624, allocations: 0 / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.3624, allocations: 8 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.3624, allocations: 0 / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.215e-05/0.3625, allocations: 120.9 kB / 1.083 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3625, allocations: 4 kB / 1.083 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003302/0.3628, allocations: 55.78 kB / 1.083 GB, free: 13.58 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000117/0.363, allocations: 103.2 kB / 1.083 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002103/0.3632, allocations: 107.7 kB / 1.083 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.227e-06/0.3632, allocations: 0 / 1.083 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.744e-05/0.3632, allocations: 21.12 kB / 1.083 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.3635, allocations: 23.92 kB / 1.084 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005194/0.364, allocations: 341 kB / 1.084 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.3644, allocations: 0.7202 MB / 1.085 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.541e-05/0.3645, allocations: 28.61 kB / 1.085 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.176e-05/0.3645, allocations: 15.44 kB / 1.085 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.3645, allocations: 0 / 1.085 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of Templates: time 0.00339/0.3679, allocations: 0.8022 MB / 1.085 GB, free: 11.37 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)