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.001381/0.001381, allocations: 108 kB / 16.41 MB, free: 6.027 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.001581/0.001581, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002149/0.002149, allocations: 297.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9826/0.9826, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 91.86 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5456/0.5476, allocations: 86.97 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004081/0.5517, allocations: 2.494 MB / 0.7695 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001364/0.5531, allocations: 0.7751 MB / 0.7702 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.5532, allocations: 3.938 kB / 0.7702 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.5545, allocations: 0.5375 MB / 0.7708 GB, free: 92 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003494/0.5548, allocations: 99.64 kB / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.5552, allocations: 115.7 kB / 0.771 GB, free: 15.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00033/0.5555, allocations: 195.3 kB / 0.7711 GB, free: 15.69 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003763/0.5559, allocations: 159 kB / 0.7713 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.5561, allocations: 83.69 kB / 0.7714 GB, free: 15.44 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.5564, allocations: 95.66 kB / 0.7715 GB, free: 15.35 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.5564, allocations: 12 kB / 0.7715 GB, free: 15.34 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002449/0.5566, allocations: 107.8 kB / 0.7716 GB, free: 15.23 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.996e-05/0.5567, allocations: 55.88 kB / 0.7716 GB, free: 15.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.09e-05/0.5568, allocations: 71.61 kB / 0.7717 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.5572, allocations: 221.9 kB / 0.7719 GB, free: 14.89 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5572, allocations: 4 kB / 0.7719 GB, free: 14.89 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.064e-06/0.5572, allocations: 0 / 0.7719 GB, free: 14.89 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.988e-06/0.5572, allocations: 0 / 0.7719 GB, free: 14.89 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.0007129/0.558, allocations: 447.2 kB / 0.7723 GB, free: 14.4 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.558, allocations: 12.03 kB / 0.7724 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004112/0.5584, allocations: 48.7 kB / 0.7724 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.5587, allocations: 216.1 kB / 0.7726 GB, free: 14.09 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.5587, allocations: 8.656 kB / 0.7726 GB, free: 14.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.5588, allocations: 12.38 kB / 0.7726 GB, free: 14.07 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003659/0.5591, allocations: 240.2 kB / 0.7729 GB, free: 13.82 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.5591, allocations: 0 / 0.7729 GB, free: 13.82 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.5592, allocations: 3.984 kB / 0.7729 GB, free: 13.81 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.413e-05/0.5592, allocations: 20.27 kB / 0.7729 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002259/0.5594, allocations: 148.7 kB / 0.773 GB, free: 13.65 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.5605, allocations: 1.13 MB / 0.7741 GB, free: 12.39 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.823e-05/0.5606, allocations: 42.5 kB / 0.7742 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.701e-05/0.5607, allocations: 20.94 kB / 0.7742 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.5607, allocations: 4 kB / 0.7742 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.5607, allocations: 34.5 kB / 0.7742 GB, free: 12.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.302e-06/0.5607, allocations: 0 / 0.7742 GB, free: 12.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0002369/0.561, allocations: 81.47 kB / 0.7743 GB, free: 12.18 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.561, allocations: 55.39 kB / 0.7744 GB, free: 12.11 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.5612, allocations: 170.7 kB / 0.7745 GB, free: 11.94 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.5612, allocations: 25.7 kB / 0.7745 GB, free: 11.91 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.5613, allocations: 139.4 kB / 0.7747 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.5613, allocations: 23.75 kB / 0.7747 GB, free: 11.75 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.882e-05/0.5614, allocations: 33.7 kB / 0.7747 GB, free: 11.71 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5615, allocations: 318.8 kB / 0.775 GB, free: 11.39 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.781e-05/0.5616, allocations: 32.84 kB / 0.7751 GB, free: 11.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.038e-05/0.5616, allocations: 89.38 kB / 0.7751 GB, free: 11.23 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.5618, allocations: 129.2 kB / 0.7753 GB, free: 11.07 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5618, allocations: 0 / 0.7753 GB, free: 11.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002005/0.562, allocations: 133.4 kB / 0.7754 GB, free: 10.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.562, allocations: 8 kB / 0.7754 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.562, allocations: 4 kB / 0.7754 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.5621, allocations: 3.938 kB / 0.7754 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.5622, allocations: 27.92 kB / 0.7754 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.5622, allocations: 4 kB / 0.7754 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.597e-05/0.5623, allocations: 19.75 kB / 0.7755 GB, free: 10.87 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.5623, allocations: 8 kB / 0.7755 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001088/0.5624, allocations: 122.8 kB / 0.7756 GB, free: 10.74 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.829e-05/0.5625, allocations: 95.36 kB / 0.7757 GB, free: 10.61 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001225/0.5626, allocations: 125.5 kB / 0.7758 GB, free: 10.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.373e-06/0.5626, allocations: 4 kB / 0.7758 GB, free: 10.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001847/0.5628, allocations: 133.3 kB / 0.7759 GB, free: 10.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.5628, allocations: 7.281 kB / 0.7759 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-06/0.5628, allocations: 4 kB / 0.7759 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.282e-06/0.5628, allocations: 4 kB / 0.7759 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.495e-05/0.5629, allocations: 28.23 kB / 0.776 GB, free: 10.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.5629, allocations: 11.94 kB / 0.776 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.237e-05/0.563, allocations: 12 kB / 0.776 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.563, allocations: 4 kB / 0.776 GB, free: 10.25 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 9.593e-05/0.5631, allocations: 188.2 kB / 0.7762 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.5632, allocations: 15.75 kB / 0.7762 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.432e-05/0.5632, allocations: 16.92 kB / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.5632, allocations: 3.938 kB / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.5632, allocations: 0 / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.5632, allocations: 4 kB / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000405/0.5636, allocations: 465.2 kB / 0.7767 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.5636, allocations: 0 / 0.7767 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.5637, allocations: 15.94 kB / 0.7767 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.5637, allocations: 0 / 0.7767 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.5637, allocations: 3.938 kB / 0.7767 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.5637, allocations: 12.06 kB / 0.7767 GB, free: 9.461 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5637, allocations: 0 / 0.7767 GB, free: 9.461 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001298/0.5639, allocations: 115.4 kB / 0.7768 GB, free: 9.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.5639, allocations: 85.02 kB / 0.7769 GB, free: 9.219 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.5639, allocations: 3.984 kB / 0.7769 GB, free: 9.215 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.544e-05/0.564, allocations: 12 kB / 0.7769 GB, free: 9.203 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.564, allocations: 3.938 kB / 0.7769 GB, free: 9.199 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.564, allocations: 4 kB / 0.7769 GB, free: 9.195 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.483e-05/0.5641, allocations: 121.8 kB / 0.777 GB, free: 9.078 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5641, allocations: 0 / 0.777 GB, free: 9.078 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003461/0.5645, allocations: 51.84 kB / 0.7771 GB, free: 9.027 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 0.0001065/0.5646, allocations: 95.25 kB / 0.7772 GB, free: 8.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001986/0.5648, allocations: 119.6 kB / 0.7773 GB, free: 8.805 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.5648, allocations: 0 / 0.7773 GB, free: 8.805 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.477e-05/0.5648, allocations: 17.36 kB / 0.7773 GB, free: 8.789 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.5651, allocations: 23.34 kB / 0.7773 GB, free: 8.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004959/0.5656, allocations: 309 kB / 0.7776 GB, free: 8.426 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.5659, allocations: 0.7202 MB / 0.7783 GB, free: 7.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.566, allocations: 15.44 kB / 0.7783 GB, free: 7.664 MB / 0.545 GB Notification: Performance of SimCode: time 3.91e-07/0.566, allocations: 0 / 0.7783 GB, free: 7.664 MB / 0.545 GB Notification: Performance of Templates: time 0.003816/0.5698, allocations: 1.461 MB / 0.7798 GB, free: 6.203 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)