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.001249/0.001249, allocations: 109.3 kB / 16.41 MB, free: 6.445 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.001243/0.001243, allocations: 183 kB / 17.34 MB, free: 5.742 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002183/0.002183, allocations: 291 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9451/0.9451, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 91.86 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5468/0.5487, allocations: 86.97 MB / 0.767 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004455/0.5532, allocations: 2.494 MB / 0.7695 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.5548, allocations: 0.7751 MB / 0.7702 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.555, allocations: 7.938 kB / 0.7702 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.5563, allocations: 0.5297 MB / 0.7707 GB, free: 56 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003607/0.5567, allocations: 111.6 kB / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.5571, allocations: 107.7 kB / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.5574, allocations: 199.3 kB / 0.7711 GB, free: 15.64 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.5578, allocations: 159 kB / 0.7713 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.5579, allocations: 83.69 kB / 0.7714 GB, free: 15.4 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.5582, allocations: 91.66 kB / 0.7715 GB, free: 15.31 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.5583, allocations: 12 kB / 0.7715 GB, free: 15.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002277/0.5585, allocations: 111.8 kB / 0.7716 GB, free: 15.19 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.744e-05/0.5586, allocations: 55.88 kB / 0.7716 GB, free: 15.13 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.247e-05/0.5587, allocations: 71.61 kB / 0.7717 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.559, allocations: 221.9 kB / 0.7719 GB, free: 14.85 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.559, allocations: 4 kB / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.665e-06/0.559, allocations: 3.938 kB / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.559, allocations: 3.938 kB / 0.7719 GB, free: 14.84 MB / 0.545 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.0006738/0.5597, allocations: 443.3 kB / 0.7723 GB, free: 14.35 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.5598, allocations: 8.031 kB / 0.7724 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003828/0.5601, allocations: 52.7 kB / 0.7724 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.5604, allocations: 212.1 kB / 0.7726 GB, free: 14.05 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.5604, allocations: 16.66 kB / 0.7726 GB, free: 14.03 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.5605, allocations: 16.36 kB / 0.7726 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.5608, allocations: 232.2 kB / 0.7729 GB, free: 13.77 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.5609, allocations: 0 / 0.7729 GB, free: 13.77 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.5609, allocations: 8 kB / 0.7729 GB, free: 13.76 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-05/0.5609, allocations: 12.28 kB / 0.7729 GB, free: 13.75 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.5612, allocations: 152.7 kB / 0.773 GB, free: 13.6 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.5623, allocations: 1.134 MB / 0.7741 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.461e-05/0.5624, allocations: 42.5 kB / 0.7742 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.397e-05/0.5624, allocations: 16.94 kB / 0.7742 GB, free: 12.27 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.5625, allocations: 8 kB / 0.7742 GB, free: 12.26 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.5625, allocations: 30.56 kB / 0.7742 GB, free: 12.22 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.412e-06/0.5625, allocations: 0 / 0.7742 GB, free: 12.22 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0002031/0.5627, allocations: 73.52 kB / 0.7743 GB, free: 12.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.5627, allocations: 67.34 kB / 0.7744 GB, free: 12.06 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.5629, allocations: 172.6 kB / 0.7745 GB, free: 11.89 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.5629, allocations: 25.7 kB / 0.7745 GB, free: 11.86 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.563, allocations: 139.4 kB / 0.7747 GB, free: 11.72 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.563, allocations: 23.73 kB / 0.7747 GB, free: 11.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/0.5631, allocations: 25.72 kB / 0.7747 GB, free: 11.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.5633, allocations: 322.8 kB / 0.775 GB, free: 11.34 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.936e-05/0.5633, allocations: 28.84 kB / 0.7751 GB, free: 11.31 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.96e-05/0.5634, allocations: 93.38 kB / 0.7752 GB, free: 11.18 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.5636, allocations: 125.2 kB / 0.7753 GB, free: 11.03 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5636, allocations: 7.984 kB / 0.7753 GB, free: 11.02 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002067/0.5638, allocations: 125.4 kB / 0.7754 GB, free: 10.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.5638, allocations: 7.984 kB / 0.7754 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.5638, allocations: 4 kB / 0.7754 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.5638, allocations: 7.938 kB / 0.7754 GB, free: 10.87 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.564, allocations: 28.25 kB / 0.7754 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.564, allocations: 11.98 kB / 0.7755 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.517e-05/0.5641, allocations: 15.75 kB / 0.7755 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.5641, allocations: 11.94 kB / 0.7755 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001127/0.5642, allocations: 122.5 kB / 0.7756 GB, free: 10.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.763e-05/0.5643, allocations: 89.36 kB / 0.7757 GB, free: 10.56 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001336/0.5644, allocations: 121.3 kB / 0.7758 GB, free: 10.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.006e-06/0.5644, allocations: 4 kB / 0.7758 GB, free: 10.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001981/0.5646, allocations: 133.8 kB / 0.7759 GB, free: 10.27 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.5647, allocations: 12.06 kB / 0.7759 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.626e-06/0.5647, allocations: 4 kB / 0.7759 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.716e-06/0.5647, allocations: 0 / 0.7759 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.542e-05/0.5647, allocations: 27.92 kB / 0.776 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.5648, allocations: 7.938 kB / 0.776 GB, free: 10.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.325e-05/0.5648, allocations: 4 kB / 0.776 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.5648, allocations: 8 kB / 0.776 GB, free: 10.21 MB / 0.545 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.0001071/0.565, allocations: 188.2 kB / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.565, allocations: 11.81 kB / 0.7762 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.565, allocations: 24.86 kB / 0.7762 GB, free: 9.977 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.565, allocations: 3.938 kB / 0.7762 GB, free: 9.973 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5651, allocations: 0 / 0.7762 GB, free: 9.973 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.5651, allocations: 0 / 0.7762 GB, free: 9.973 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.5655, allocations: 469.2 kB / 0.7767 GB, free: 9.445 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.5655, allocations: 8.125 kB / 0.7767 GB, free: 9.438 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.386e-05/0.5656, allocations: 4 kB / 0.7767 GB, free: 9.434 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.5656, allocations: 3.938 kB / 0.7767 GB, free: 9.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.5656, allocations: 4 kB / 0.7767 GB, free: 9.426 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.5656, allocations: 7.922 kB / 0.7767 GB, free: 9.418 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5656, allocations: 0 / 0.7767 GB, free: 9.418 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001364/0.5658, allocations: 115.5 kB / 0.7768 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.5658, allocations: 93 kB / 0.7769 GB, free: 9.168 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.5658, allocations: 4 kB / 0.7769 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.397e-05/0.5659, allocations: 0 / 0.7769 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.2e-05/0.5659, allocations: 7.938 kB / 0.7769 GB, free: 9.156 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.5659, allocations: 0 / 0.7769 GB, free: 9.156 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001064/0.566, allocations: 128 kB / 0.777 GB, free: 9.031 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.566, allocations: 0 / 0.777 GB, free: 9.031 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003767/0.5664, allocations: 55.84 kB / 0.7771 GB, free: 8.977 MB / 0.545 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 9.979e-05/0.5665, allocations: 99.23 kB / 0.7772 GB, free: 8.867 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002231/0.5668, allocations: 112.6 kB / 0.7773 GB, free: 8.758 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5668, allocations: 0 / 0.7773 GB, free: 8.758 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.883e-05/0.5668, allocations: 20.25 kB / 0.7773 GB, free: 8.738 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.5671, allocations: 21.3 kB / 0.7773 GB, free: 8.723 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000589/0.5677, allocations: 312.8 kB / 0.7776 GB, free: 8.375 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.568, allocations: 0.7244 MB / 0.7783 GB, free: 7.625 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.5681, allocations: 15.44 kB / 0.7783 GB, free: 7.609 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.5681, allocations: 0 / 0.7783 GB, free: 7.609 MB / 0.545 GB Notification: Performance of Templates: time 0.003275/0.5714, allocations: 1.462 MB / 0.7798 GB, free: 6.152 MB / 0.545 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)