Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder") translateModel(BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7772/0.7772, allocations: 140.1 MB / 156 MB, free: 5.191 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 189.2 kB / 188.5 MB, free: 15.84 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.4 MB / 426.3 MB, free: 8.461 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007754/0.0007754, allocations: 89.92 kB / 0.4945 GB, free: 8.414 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001564/0.001564, allocations: 263.7 kB / 0.5728 GB, free: 66.24 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004665/0.0004669, allocations: 15.98 kB / 0.662 GB, free: 6.824 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3691, allocations: 79.29 MB / 0.7395 GB, free: 46.37 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.5051, allocations: 113.2 MB / 0.85 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.5054, allocations: 83.95 kB / 0.8501 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01613/0.5215, allocations: 7.035 MB / 0.857 GB, free: 5.855 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.003e-06/0.5216, allocations: 8 kB / 0.857 GB, free: 5.848 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.883e-05/0.5216, allocations: 4 kB / 0.857 GB, free: 5.844 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009462/0.5226, allocations: 0.5892 MB / 0.8576 GB, free: 5.203 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.5226, allocations: 12.03 kB / 0.8576 GB, free: 5.191 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.5227, allocations: 40.47 kB / 0.8576 GB, free: 5.152 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006765/0.5234, allocations: 411.7 kB / 0.858 GB, free: 4.711 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.5235, allocations: 24.94 kB / 0.858 GB, free: 4.688 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.896e-05/0.5235, allocations: 28.38 kB / 0.8581 GB, free: 4.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006534/0.5242, allocations: 329.9 kB / 0.8584 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.5242, allocations: 192 / 0.8584 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.5243, allocations: 15.94 kB / 0.8584 GB, free: 4.305 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.5243, allocations: 15.97 kB / 0.8584 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005078/0.5248, allocations: 242.2 kB / 0.8586 GB, free: 4.055 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.5265, allocations: 1.178 MB / 0.8598 GB, free: 2.816 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004902/0.527, allocations: 238.8 kB / 0.86 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.5272, allocations: 100.8 kB / 0.8601 GB, free: 2.473 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.5273, allocations: 0 / 0.8601 GB, free: 2.473 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.5273, allocations: 34.56 kB / 0.8602 GB, free: 2.43 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.5273, allocations: 0 / 0.8602 GB, free: 2.43 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16): time 0.0006989/0.528, allocations: 325.1 kB / 0.8605 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.5281, allocations: 77.33 kB / 0.8605 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.5285, allocations: 333.7 kB / 0.8609 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.5285, allocations: 37.64 kB / 0.8609 GB, free: 1.637 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.5287, allocations: 192.1 kB / 0.8611 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.5287, allocations: 51.27 kB / 0.8611 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.959e-06/0.5287, allocations: 4 kB / 0.8611 GB, free: 1.391 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.5289, allocations: 346.7 kB / 0.8615 GB, free: 1.043 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.5291, allocations: 87.97 kB / 0.8615 GB, free: 0.957 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.5293, allocations: 119.9 kB / 0.8617 GB, free: 0.8281 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.5297, allocations: 204.2 kB / 0.8618 GB, free: 0.6211 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5297, allocations: 0 / 0.8618 GB, free: 0.6211 MB / 0.5261 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005052/0.5302, allocations: 262.5 kB / 0.8621 GB, free: 368 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.775e-05/0.5303, allocations: 110.8 kB / 0.8622 GB, free: 244 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.5303, allocations: 0 / 0.8622 GB, free: 244 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.5303, allocations: 4 kB / 0.8622 GB, free: 240 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.5305, allocations: 35.86 kB / 0.8622 GB, free: 204 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.5305, allocations: 4 kB / 0.8622 GB, free: 200 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.5307, allocations: 35.7 kB / 0.8623 GB, free: 164 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.5307, allocations: 8 kB / 0.8623 GB, free: 156 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.395e-06/0.5307, allocations: 4 kB / 0.8623 GB, free: 152 kB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003208/0.5311, allocations: 177 kB / 0.8625 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.5311, allocations: 4 kB / 0.8625 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-06/0.5311, allocations: 0 / 0.8625 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.5312, allocations: 27.92 kB / 0.8625 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-06/0.5312, allocations: 4 kB / 0.8625 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.5314, allocations: 23.91 kB / 0.8625 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.5314, allocations: 4 kB / 0.8625 GB, free: 15.91 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (actSet.y,actAct.y,expMod.mod.conPI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002246/0.5316, allocations: 237.1 kB / 0.8627 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.925e-05/0.5317, allocations: 31.62 kB / 0.8628 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.721e-05/0.5318, allocations: 35.28 kB / 0.8628 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.5318, allocations: 0 / 0.8628 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.5318, allocations: 7.984 kB / 0.8628 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5318, allocations: 0 / 0.8628 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.5322, allocations: 409.2 kB / 0.8632 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.5323, allocations: 4 kB / 0.8632 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.5324, allocations: 35.92 kB / 0.8632 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.5324, allocations: 0 / 0.8632 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.5325, allocations: 4 kB / 0.8633 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.5325, allocations: 3.938 kB / 0.8633 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.5325, allocations: 4 kB / 0.8633 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006859/0.5332, allocations: 464.2 kB / 0.8637 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.5333, allocations: 132.6 kB / 0.8638 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.625e-05/0.5334, allocations: 8.062 kB / 0.8638 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.5335, allocations: 19.98 kB / 0.8639 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.5336, allocations: 7.984 kB / 0.8639 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.5336, allocations: 4 kB / 0.8639 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000241/0.5339, allocations: 239.2 kB / 0.8641 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5339, allocations: 0 / 0.8641 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004216/0.5343, allocations: 91.69 kB / 0.8642 GB, free: 14.12 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (expMod.mod.conPI.I.y,expMod.mod.firOrd.y) * Number of discrete variables: 2 (actSet.y,actAct.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001481/0.5345, allocations: 107.2 kB / 0.8643 GB, free: 14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0006726/0.5351, allocations: 300 kB / 0.8646 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5352, allocations: 4 kB / 0.8646 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.5354, allocations: 103.8 kB / 0.8647 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.536, allocations: 81.17 kB / 0.8648 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.5374, allocations: 0.6445 MB / 0.8654 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.5377, allocations: 0.7794 MB / 0.8661 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001901/0.5379, allocations: 26.28 kB / 0.8662 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.268e-05/0.538, allocations: 23.44 kB / 0.8662 GB, free: 12 MB / 0.5417 GB Notification: Performance of SimCode: time 5.72e-07/0.538, allocations: 0 / 0.8662 GB, free: 12 MB / 0.5417 GB Notification: Performance of Templates: time 0.006421/0.5445, allocations: 2.947 MB / 0.8691 GB, free: 9.086 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1)