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.001709/0.001709, allocations: 105.7 kB / 16.41 MB, free: 6.5 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.001868/0.001868, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.49/1.49, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002568/0.002568, allocations: 289.4 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 1.223/1.223, allocations: 169.2 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002819/0.002819, allocations: 99.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4408/0.4437, allocations: 86.97 MB / 0.767 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004032/0.4477, allocations: 2.499 MB / 0.7695 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001389/0.4491, allocations: 0.7751 MB / 0.7702 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.334e-05/0.4492, allocations: 4 kB / 0.7702 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.4504, allocations: 0.5336 MB / 0.7708 GB, free: 80 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002637/0.4506, allocations: 107.5 kB / 0.7709 GB, free: 15.97 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.4509, allocations: 111.2 kB / 0.771 GB, free: 15.87 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002716/0.4512, allocations: 199.4 kB / 0.7712 GB, free: 15.67 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003183/0.4515, allocations: 138 kB / 0.7713 GB, free: 15.53 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.4516, allocations: 79.75 kB / 0.7714 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.4518, allocations: 95.59 kB / 0.7715 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.4519, allocations: 15.94 kB / 0.7715 GB, free: 15.34 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.4521, allocations: 111.8 kB / 0.7716 GB, free: 15.23 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.818e-05/0.4522, allocations: 51.88 kB / 0.7716 GB, free: 15.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.863e-05/0.4522, allocations: 75.61 kB / 0.7717 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.4526, allocations: 229 kB / 0.7719 GB, free: 14.89 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.4526, allocations: 0 / 0.7719 GB, free: 14.89 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4526, allocations: 0 / 0.7719 GB, free: 14.89 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.4526, 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.0006048/0.4532, allocations: 443 kB / 0.7723 GB, free: 14.41 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.4532, allocations: 12.03 kB / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003689/0.4536, allocations: 48.8 kB / 0.7724 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.4539, allocations: 228.1 kB / 0.7726 GB, free: 14.09 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.4539, allocations: 8.656 kB / 0.7726 GB, free: 14.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.4539, allocations: 16.38 kB / 0.7726 GB, free: 14.06 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.4543, allocations: 232.2 kB / 0.7729 GB, free: 13.82 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4543, allocations: 0 / 0.7729 GB, free: 13.82 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.4544, allocations: 15.98 kB / 0.7729 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.158e-05/0.4544, allocations: 16.28 kB / 0.7729 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.4546, allocations: 144.7 kB / 0.773 GB, free: 13.64 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.4558, allocations: 1.131 MB / 0.7741 GB, free: 12.38 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.811e-05/0.4559, allocations: 38.56 kB / 0.7742 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.667e-05/0.4559, allocations: 20.94 kB / 0.7742 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.4559, allocations: 3.938 kB / 0.7742 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.456, allocations: 34.5 kB / 0.7742 GB, free: 12.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.456, allocations: 0 / 0.7742 GB, free: 12.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.000221/0.4562, allocations: 89.55 kB / 0.7743 GB, free: 12.17 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.4562, allocations: 51.41 kB / 0.7744 GB, free: 12.11 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.4564, allocations: 172.7 kB / 0.7745 GB, free: 11.94 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.4564, allocations: 25.7 kB / 0.7745 GB, free: 11.91 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.561e-05/0.4565, allocations: 143.7 kB / 0.7747 GB, free: 11.76 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.4565, allocations: 23.83 kB / 0.7747 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.4566, allocations: 25.72 kB / 0.7747 GB, free: 11.71 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.4567, allocations: 322.8 kB / 0.775 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.787e-05/0.4568, allocations: 28.84 kB / 0.7751 GB, free: 11.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.58e-05/0.4569, allocations: 89.38 kB / 0.7752 GB, free: 11.23 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.457, allocations: 125.3 kB / 0.7753 GB, free: 11.07 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.457, allocations: 7.922 kB / 0.7753 GB, free: 11.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002023/0.4572, allocations: 133.4 kB / 0.7754 GB, free: 10.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.4572, allocations: 11.98 kB / 0.7754 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.4572, allocations: 320 / 0.7754 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.4573, allocations: 11.94 kB / 0.7754 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.4574, allocations: 23.94 kB / 0.7755 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.4574, allocations: 7.984 kB / 0.7755 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.501e-05/0.4574, allocations: 15.84 kB / 0.7755 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.4575, allocations: 8 kB / 0.7755 GB, free: 10.85 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001073/0.4576, allocations: 120.1 kB / 0.7756 GB, free: 10.73 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.332e-05/0.4577, allocations: 89.42 kB / 0.7757 GB, free: 10.61 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001926/0.4578, allocations: 125.2 kB / 0.7758 GB, free: 10.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.112e-06/0.4578, allocations: 0 / 0.7758 GB, free: 10.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000197/0.458, allocations: 133.5 kB / 0.7759 GB, free: 10.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.973e-06/0.4581, allocations: 4 kB / 0.7759 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-06/0.4581, allocations: 4 kB / 0.7759 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-06/0.4581, allocations: 11.88 kB / 0.7759 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.617e-05/0.4581, allocations: 23.98 kB / 0.776 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.4581, allocations: 7.938 kB / 0.776 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.063e-05/0.4582, allocations: 7.953 kB / 0.776 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.4582, allocations: 8 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 0.0001063/0.4583, allocations: 192.4 kB / 0.7762 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.993e-05/0.4583, allocations: 7.953 kB / 0.7762 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.554e-05/0.4584, allocations: 20.92 kB / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.4584, allocations: 3.938 kB / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.4584, allocations: 0 / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.4584, allocations: 0 / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.4589, allocations: 477 kB / 0.7767 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.4589, allocations: 4 kB / 0.7767 GB, free: 9.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.273e-05/0.4589, allocations: 4 kB / 0.7767 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.4589, allocations: 4 kB / 0.7767 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-06/0.4589, allocations: 0 / 0.7767 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4589, allocations: 3.984 kB / 0.7767 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.4589, allocations: 4 kB / 0.7767 GB, free: 9.465 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.459, allocations: 119.9 kB / 0.7768 GB, free: 9.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.654e-05/0.4591, allocations: 89.05 kB / 0.7769 GB, free: 9.215 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.4591, allocations: 48 / 0.7769 GB, free: 9.215 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.651e-05/0.4592, allocations: 3.984 kB / 0.7769 GB, free: 9.211 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.4592, allocations: 4 kB / 0.7769 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-06/0.4592, allocations: 8 kB / 0.7769 GB, free: 9.199 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001072/0.4593, allocations: 124 kB / 0.777 GB, free: 9.078 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.4593, allocations: 0 / 0.777 GB, free: 9.078 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003426/0.4596, allocations: 59.78 kB / 0.7771 GB, free: 9.02 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.0001017/0.4597, allocations: 99.23 kB / 0.7772 GB, free: 8.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002065/0.4599, allocations: 116.8 kB / 0.7773 GB, free: 8.797 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4599, allocations: 0 / 0.7773 GB, free: 8.797 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.655e-05/0.46, allocations: 15.94 kB / 0.7773 GB, free: 8.781 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.4602, allocations: 17.16 kB / 0.7773 GB, free: 8.766 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004829/0.4607, allocations: 283.2 kB / 0.7776 GB, free: 8.453 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.4611, allocations: 0.728 MB / 0.7783 GB, free: 7.699 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.831e-05/0.4612, allocations: 24.62 kB / 0.7783 GB, free: 7.676 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.4612, allocations: 19.38 kB / 0.7783 GB, free: 7.656 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.4612, allocations: 0 / 0.7783 GB, free: 7.656 MB / 0.545 GB Notification: Performance of Templates: time 0.003506/0.4647, allocations: 0.8712 MB / 0.7792 GB, free: 6.793 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)