Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.004682/0.004682, allocations: 103.5 kB / 15.74 MB, free: 6.039 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.001142/0.001142, allocations: 201.7 kB / 16.68 MB, free: 5.965 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00207/0.002069, allocations: 275.1 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9237/0.9237, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 95.84 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1533, allocations: 86.97 MB / 0.7664 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004124/0.1575, allocations: 2.502 MB / 0.7688 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1588, allocations: 0.7712 MB / 0.7696 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.159, allocations: 4 kB / 0.7696 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001386/0.1604, allocations: 0.5414 MB / 0.7701 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003366/0.1607, allocations: 107.5 kB / 0.7702 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.1611, allocations: 103.8 kB / 0.7703 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003439/0.1615, allocations: 199.4 kB / 0.7705 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004057/0.1619, allocations: 166.1 kB / 0.7706 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.162, allocations: 83.69 kB / 0.7707 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.1623, allocations: 95.64 kB / 0.7708 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.1623, allocations: 12 kB / 0.7708 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002524/0.1626, allocations: 111.8 kB / 0.7709 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.613e-05/0.1627, allocations: 59.88 kB / 0.771 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.544e-05/0.1628, allocations: 71.67 kB / 0.7711 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.1631, allocations: 219.1 kB / 0.7713 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.1632, allocations: 0 / 0.7713 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1632, allocations: 0 / 0.7713 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.1632, allocations: 0 / 0.7713 GB, free: 3.41 MB / 0.5606 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.0006916/0.1639, allocations: 451 kB / 0.7717 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1639, allocations: 12.03 kB / 0.7717 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004002/0.1643, allocations: 44.8 kB / 0.7717 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.1646, allocations: 228.1 kB / 0.772 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.1646, allocations: 8.656 kB / 0.772 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.1647, allocations: 16.38 kB / 0.772 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.165, allocations: 231.6 kB / 0.7722 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.165, allocations: 0 / 0.7722 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.1651, allocations: 12 kB / 0.7722 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.44e-05/0.1651, allocations: 16.27 kB / 0.7722 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.1653, allocations: 140.7 kB / 0.7724 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.1664, allocations: 1.131 MB / 0.7735 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.417e-05/0.1665, allocations: 38.56 kB / 0.7735 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.384e-05/0.1665, allocations: 16.86 kB / 0.7735 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.1665, allocations: 0 / 0.7735 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.1665, allocations: 38.5 kB / 0.7736 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.1666, allocations: 0 / 0.7736 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4): time 0.0001975/0.1668, allocations: 85.59 kB / 0.7736 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.1668, allocations: 55.34 kB / 0.7737 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.167, allocations: 175 kB / 0.7739 GB, free: 468 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.167, allocations: 25.7 kB / 0.7739 GB, free: 436 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.892e-05/0.1671, allocations: 151.6 kB / 0.774 GB, free: 280 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.125e-05/0.1671, allocations: 7.906 kB / 0.774 GB, free: 272 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.508e-05/0.1672, allocations: 33.7 kB / 0.7741 GB, free: 232 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.3047/0.4719, allocations: 315.6 kB / 0.7744 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.921e-05/0.472, allocations: 30.06 kB / 0.7744 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.377e-05/0.4721, allocations: 86.5 kB / 0.7745 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.4722, allocations: 124.8 kB / 0.7746 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.4723, allocations: 0.6875 kB / 0.7746 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002387/0.4725, allocations: 140.4 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.4725, allocations: 6.875 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4725, allocations: 2.469 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.4726, allocations: 4.641 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.4727, allocations: 27.03 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.4727, allocations: 8.047 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.053e-05/0.4728, allocations: 13.33 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.4728, allocations: 10.66 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.748e-05/0.4729, allocations: 121.3 kB / 0.7749 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.038e-05/0.473, allocations: 85.34 kB / 0.775 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000114/0.4731, allocations: 127.3 kB / 0.7751 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.4731, allocations: 1.375 kB / 0.7751 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001972/0.4733, allocations: 129.2 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.4733, allocations: 8 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.4734, allocations: 6.344 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.911e-06/0.4734, allocations: 3.469 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.432e-05/0.4735, allocations: 22.81 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.4735, allocations: 8.188 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.293e-05/0.4735, allocations: 20.45 kB / 0.7753 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.689e-06/0.4735, allocations: 6.156 kB / 0.7753 GB, free: 14.51 MB / 0.5606 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 6.477e-05/0.4736, allocations: 188.3 kB / 0.7755 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.4737, allocations: 8.891 kB / 0.7755 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.4737, allocations: 14.81 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.4737, allocations: 0.9062 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4737, allocations: 4.656 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4737, allocations: 3.875 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.4741, allocations: 474.2 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.4742, allocations: 3.188 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.4742, allocations: 12.12 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.4742, allocations: 1.125 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.4742, allocations: 1.406 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.4742, allocations: 4.156 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4742, allocations: 1.938 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001266/0.4744, allocations: 119.3 kB / 0.7761 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-05/0.4744, allocations: 92.97 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.4745, allocations: 4.875 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.848e-05/0.4745, allocations: 3.312 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.304e-05/0.4745, allocations: 2.891 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.4746, allocations: 2.156 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001083/0.4747, allocations: 130.3 kB / 0.7763 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.253e-06/0.4747, allocations: 0 / 0.7763 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000421/0.4751, allocations: 59.5 kB / 0.7764 GB, free: 13.63 MB / 0.5606 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.0001179/0.4752, allocations: 103.8 kB / 0.7765 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002786/0.4755, allocations: 105.6 kB / 0.7766 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4755, allocations: 1.156 kB / 0.7766 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.4e-05/0.4756, allocations: 22 kB / 0.7766 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.4759, allocations: 26.36 kB / 0.7767 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005493/0.4765, allocations: 280.1 kB / 0.7769 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.4767, allocations: 0.7243 MB / 0.7776 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001027/0.4768, allocations: 29.34 kB / 0.7777 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.132e-05/0.4768, allocations: 13.66 kB / 0.7777 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.4768, allocations: 0 / 0.7777 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of Templates: time 0.003722/0.4806, allocations: 0.8719 MB / 0.7785 GB, free: 12.56 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)