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.001576/0.001582, allocations: 110.5 kB / 16.42 MB, free: 6.461 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.002232/0.002232, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002218/0.002218, allocations: 287.7 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9562/0.9562, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 95.84 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4903/0.4925, allocations: 86.98 MB / 0.767 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004197/0.4968, allocations: 2.505 MB / 0.7695 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001506/0.4983, allocations: 0.7634 MB / 0.7702 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.4984, allocations: 7.938 kB / 0.7702 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001246/0.4997, allocations: 0.5336 MB / 0.7708 GB, free: 80 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000311/0.5, allocations: 103.6 kB / 0.7709 GB, free: 15.97 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.5004, allocations: 117.8 kB / 0.771 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.5007, allocations: 199.3 kB / 0.7712 GB, free: 15.67 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003497/0.5011, allocations: 158.1 kB / 0.7713 GB, free: 15.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.5012, allocations: 79.75 kB / 0.7714 GB, free: 15.43 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002318/0.5015, allocations: 99.59 kB / 0.7715 GB, free: 15.33 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.5015, allocations: 12 kB / 0.7715 GB, free: 15.32 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.5017, allocations: 107.8 kB / 0.7716 GB, free: 15.21 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.98e-05/0.5018, allocations: 59.88 kB / 0.7717 GB, free: 15.15 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.739e-05/0.5019, allocations: 75.66 kB / 0.7717 GB, free: 15.08 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003655/0.5023, allocations: 217.9 kB / 0.7719 GB, free: 14.87 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.5023, allocations: 0 / 0.7719 GB, free: 14.87 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.665e-06/0.5023, allocations: 0 / 0.7719 GB, free: 14.87 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.5023, allocations: 7.938 kB / 0.7719 GB, free: 14.86 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.0006071/0.5029, allocations: 443.3 kB / 0.7724 GB, free: 14.38 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.503, allocations: 8.031 kB / 0.7724 GB, free: 14.37 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003832/0.5034, allocations: 44.7 kB / 0.7724 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.5036, allocations: 220.1 kB / 0.7726 GB, free: 14.07 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.5037, allocations: 12.66 kB / 0.7726 GB, free: 14.06 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.5037, allocations: 12.38 kB / 0.7726 GB, free: 14.05 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.5041, allocations: 236.2 kB / 0.7729 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.5041, allocations: 4 kB / 0.7729 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.5041, allocations: 7.984 kB / 0.7729 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.134e-05/0.5042, allocations: 12.28 kB / 0.7729 GB, free: 13.77 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.5044, allocations: 144.7 kB / 0.773 GB, free: 13.63 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.5055, allocations: 1.134 MB / 0.7741 GB, free: 12.37 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.9e-05/0.5056, allocations: 46.5 kB / 0.7742 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.685e-05/0.5056, allocations: 16.86 kB / 0.7742 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.5057, allocations: 3.938 kB / 0.7742 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.5057, allocations: 30.56 kB / 0.7742 GB, free: 12.25 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.613e-06/0.5057, allocations: 4 kB / 0.7742 GB, free: 12.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0002089/0.5059, allocations: 81.61 kB / 0.7743 GB, free: 12.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.659e-05/0.5059, allocations: 51.41 kB / 0.7744 GB, free: 12.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.5062, allocations: 171 kB / 0.7745 GB, free: 11.92 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.5062, allocations: 25.7 kB / 0.7746 GB, free: 11.89 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.031e-05/0.5063, allocations: 139.4 kB / 0.7747 GB, free: 11.75 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.5063, allocations: 19.73 kB / 0.7747 GB, free: 11.73 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.5064, allocations: 25.72 kB / 0.7747 GB, free: 11.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.5065, allocations: 326.8 kB / 0.775 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.521e-05/0.5066, allocations: 36.84 kB / 0.7751 GB, free: 11.33 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.581e-05/0.5066, allocations: 89.31 kB / 0.7752 GB, free: 11.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.5068, allocations: 137.5 kB / 0.7753 GB, free: 11.04 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.5068, allocations: 0 / 0.7753 GB, free: 11.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002052/0.507, allocations: 133.3 kB / 0.7754 GB, free: 10.91 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.507, allocations: 4.312 kB / 0.7754 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.5071, allocations: 8 kB / 0.7754 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.5071, allocations: 4 kB / 0.7754 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.5072, allocations: 27.88 kB / 0.7755 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.5072, allocations: 7.984 kB / 0.7755 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.871e-05/0.5073, allocations: 19.75 kB / 0.7755 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.5073, allocations: 8 kB / 0.7755 GB, free: 10.83 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001027/0.5074, allocations: 122.5 kB / 0.7756 GB, free: 10.71 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.37e-05/0.5075, allocations: 89.44 kB / 0.7757 GB, free: 10.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001268/0.5076, allocations: 121.2 kB / 0.7758 GB, free: 10.43 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.233e-06/0.5076, allocations: 0 / 0.7758 GB, free: 10.43 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002073/0.5079, allocations: 133.4 kB / 0.7759 GB, free: 10.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.5079, allocations: 6.656 kB / 0.7759 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.5079, allocations: 7.938 kB / 0.776 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.168e-06/0.5079, allocations: 4 kB / 0.776 GB, free: 10.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.906e-05/0.508, allocations: 23.98 kB / 0.776 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.508, allocations: 3.938 kB / 0.776 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.665e-05/0.5081, allocations: 8 kB / 0.776 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.5081, allocations: 8 kB / 0.776 GB, free: 10.24 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.905e-05/0.5082, allocations: 196.4 kB / 0.7762 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.5082, allocations: 11.81 kB / 0.7762 GB, free: 10.03 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.163e-05/0.5083, allocations: 16.92 kB / 0.7762 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.5083, allocations: 3.938 kB / 0.7762 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.5083, allocations: 0 / 0.7762 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.152e-05/0.5084, allocations: 92.94 kB / 0.7763 GB, free: 9.895 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.5084, allocations: 4 kB / 0.7763 GB, free: 9.891 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.305e-05/0.5084, allocations: 0 / 0.7763 GB, free: 9.891 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.067e-05/0.5085, allocations: 4 kB / 0.7763 GB, free: 9.887 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001537/0.5086, allocations: 140.8 kB / 0.7764 GB, free: 9.742 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001931/0.5088, allocations: 238.7 kB / 0.7767 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.979e-05/0.5089, allocations: 16.17 kB / 0.7767 GB, free: 9.477 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001444/0.509, allocations: 121.8 kB / 0.7768 GB, free: 9.359 MB / 0.545 GB Notification: Performance of Backend: time 5.11e-07/0.509, allocations: 0 / 0.7768 GB, free: 9.359 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006318/0.5097, allocations: 251.2 kB / 0.777 GB, free: 9.105 MB / 0.545 GB Notification: Performance of SimCode: time 0.0007187/0.5104, allocations: 0.6997 MB / 0.7777 GB, free: 8.363 MB / 0.545 GB Notification: Performance of Templates: time 0.004352/0.5148, allocations: 1.544 MB / 0.7792 GB, free: 6.824 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)