Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.conf.json 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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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) Running command: translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009022/0.0009023, allocations: 181 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.00112, allocations: 102.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08177/0.08177, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004035/0.0004035, allocations: 13.03 kB / 392 MB, free: 54.83 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1141, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1177/0.2319, allocations: 80.08 MB / 0.5102 GB, free: 10.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.2322, allocations: 67.97 kB / 0.5103 GB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01088/0.2431, allocations: 3.696 MB / 0.5139 GB, free: 6.965 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2431, allocations: 0 / 0.5139 GB, free: 6.965 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.2431, allocations: 4 kB / 0.5139 GB, free: 6.961 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009446/0.2441, allocations: 0.5956 MB / 0.5145 GB, free: 6.312 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.2441, allocations: 8.031 kB / 0.5145 GB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.733e-05/0.2442, allocations: 31.62 kB / 0.5145 GB, free: 6.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.2446, allocations: 307.3 kB / 0.5148 GB, free: 5.938 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.2446, allocations: 8.281 kB / 0.5148 GB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.955e-05/0.2447, allocations: 23.95 kB / 0.5148 GB, free: 5.906 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006207/0.2453, allocations: 382.1 kB / 0.5152 GB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2454, allocations: 0 / 0.5152 GB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.2454, allocations: 7.938 kB / 0.5152 GB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.2454, allocations: 4 kB / 0.5152 GB, free: 5.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.2456, allocations: 87.95 kB / 0.5153 GB, free: 5.414 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006952/0.2463, allocations: 0.5326 MB / 0.5158 GB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006999/0.247, allocations: 315.7 kB / 0.5161 GB, free: 4.488 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.2471, allocations: 4.25 kB / 0.5161 GB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2471, allocations: 46.48 kB / 0.5161 GB, free: 4.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.462e-06/0.2471, allocations: 0 / 0.5161 GB, free: 4.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.002171/0.2493, allocations: 1.244 MB / 0.5174 GB, free: 3.094 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.2494, allocations: 131.2 kB / 0.5175 GB, free: 2.941 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.2497, allocations: 303.7 kB / 0.5178 GB, free: 2.633 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.2498, allocations: 29.7 kB / 0.5178 GB, free: 2.598 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.2499, allocations: 144.8 kB / 0.5179 GB, free: 2.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/0.2499, allocations: 47.58 kB / 0.518 GB, free: 2.406 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.224e-05/0.25, allocations: 8 kB / 0.518 GB, free: 2.398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.2501, allocations: 350.8 kB / 0.5183 GB, free: 2.047 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.2502, allocations: 64.84 kB / 0.5184 GB, free: 1.984 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.2505, allocations: 288 kB / 0.5187 GB, free: 1.594 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.2507, allocations: 115.8 kB / 0.5188 GB, free: 1.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.2507, allocations: 8 kB / 0.5188 GB, free: 1.473 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005596/0.2513, allocations: 384.5 kB / 0.5192 GB, free: 1.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.2513, allocations: 8 kB / 0.5192 GB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.2513, allocations: 12.81 kB / 0.5192 GB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.2514, allocations: 12 kB / 0.5192 GB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.2516, allocations: 95.83 kB / 0.5193 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.2516, allocations: 8 kB / 0.5193 GB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.2519, allocations: 27.89 kB / 0.5193 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.2519, allocations: 23.94 kB / 0.5193 GB, free: 0.9062 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001655/0.2521, allocations: 165.5 kB / 0.5195 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/0.2525, allocations: 277.2 kB / 0.5198 GB, free: 468 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006075/0.2531, allocations: 365.1 kB / 0.5201 GB, free: 96 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.2531, allocations: 8 kB / 0.5201 GB, free: 88 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.2531, allocations: 0 / 0.5201 GB, free: 88 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2532, allocations: 4.641 kB / 0.5201 GB, free: 84 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2231/0.4763, allocations: 312.1 kB / 0.5204 GB, free: 84.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4763, allocations: 1.219 kB / 0.5204 GB, free: 84.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006218/0.477, allocations: 116.8 kB / 0.5205 GB, free: 84.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.477, allocations: 2.156 kB / 0.5205 GB, free: 84.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.477, allocations: 14.42 kB / 0.5205 GB, free: 84.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.477, allocations: 2.859 kB / 0.5205 GB, free: 84.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.477, allocations: 4.719 kB / 0.5205 GB, free: 84.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009425/0.478, allocations: 0.7105 MB / 0.5212 GB, free: 84.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.996e-05/0.4781, allocations: 113.4 kB / 0.5213 GB, free: 84.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.4782, allocations: 14.94 kB / 0.5214 GB, free: 84.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.4784, allocations: 10.84 kB / 0.5214 GB, free: 84.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.4785, allocations: 9.625 kB / 0.5214 GB, free: 84.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.4785, allocations: 13 kB / 0.5214 GB, free: 84.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002742/0.4788, allocations: 245.7 kB / 0.5216 GB, free: 84.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4788, allocations: 0 / 0.5216 GB, free: 84.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004966/0.4793, allocations: 63.09 kB / 0.5217 GB, free: 84.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.000165/0.4795, allocations: 110.3 kB / 0.5218 GB, free: 84.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000554/0.48, allocations: 279.2 kB / 0.5221 GB, free: 84.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4801, allocations: 3.125 kB / 0.5221 GB, free: 84.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.322e-05/0.4801, allocations: 28.44 kB / 0.5221 GB, free: 84.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000604/0.4807, allocations: 198.2 kB / 0.5223 GB, free: 84.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.482, allocations: 0.8296 MB / 0.5231 GB, free: 83.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.4823, allocations: 0.8174 MB / 0.5239 GB, free: 83.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.4824, allocations: 30.3 kB / 0.5239 GB, free: 83.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.961e-05/0.4825, allocations: 34.02 kB / 0.524 GB, free: 83.25 MB / 362.7 MB Notification: Performance of SimCode: time 1.392e-06/0.4825, allocations: 0 / 0.524 GB, free: 83.25 MB / 362.7 MB Notification: Performance of Templates: time 0.00776/0.4903, allocations: 3.037 MB / 0.5269 GB, free: 83.05 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches