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/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 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 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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001676, allocations: 104.1 kB / 16.45 MB, free: 6.43 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.001969/0.001969, allocations: 192.6 kB / 17.38 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.642/1.642, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09621/0.09621, allocations: 12.59 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 87.59 kB / 394.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1342, allocations: 49.4 MB / 443.6 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.003687/0.1379, allocations: 2.215 MB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.1392, allocations: 0.6398 MB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.1393, allocations: 4 kB / 446.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.1395, allocations: 27.61 kB / 446.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003049/0.1398, allocations: 71.36 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002806/0.1401, allocations: 79.84 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003711/0.1405, allocations: 283 kB / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.1407, allocations: 76.86 kB / 446.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.1409, allocations: 115.4 kB / 447.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.1411, allocations: 147.2 kB / 447.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.1411, allocations: 24 kB / 447.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.6e-05/0.1412, allocations: 24 kB / 447.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.893e-05/0.1412, allocations: 67.67 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.1414, allocations: 127.1 kB / 447.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.1417, allocations: 250.9 kB / 447.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1417, allocations: 0 / 447.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1417, allocations: 4 kB / 447.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.1417, allocations: 4 kB / 447.7 MB, free: 12.32 MB / 334.1 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.001225/0.1429, allocations: 0.6152 MB / 448.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.143, allocations: 12.02 kB / 448.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.1431, allocations: 36.47 kB / 448.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.1436, allocations: 316.3 kB / 448.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.1436, allocations: 12.41 kB / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.1436, allocations: 16 kB / 448.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007664/0.1444, allocations: 377 kB / 449.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.1444, allocations: 0 / 449.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.1445, allocations: 4 kB / 449.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.1445, allocations: 8 kB / 449.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002247/0.1447, allocations: 87.94 kB / 449.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007801/0.1455, allocations: 0.5325 MB / 449.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007394/0.1463, allocations: 321.7 kB / 450 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.1465, allocations: 150.7 kB / 450.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.1466, allocations: 4 kB / 450.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.1466, allocations: 35.22 kB / 450.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.976e-06/0.1466, allocations: 3.984 kB / 450.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.00243/0.1491, allocations: 1.335 MB / 451.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.1492, allocations: 142.6 kB / 451.7 MB, free: 8.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.1496, allocations: 328.7 kB / 452 MB, free: 7.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.1496, allocations: 37.7 kB / 452 MB, free: 7.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.1497, allocations: 149 kB / 452.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.215e-05/0.1498, allocations: 51.53 kB / 452.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.083e-05/0.1499, allocations: 62.14 kB / 452.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.1501, allocations: 346.8 kB / 452.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.1502, allocations: 72.83 kB / 452.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.1505, allocations: 314.8 kB / 453 MB, free: 6.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/0.151, allocations: 425 kB / 453.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.151, allocations: 3.938 kB / 453.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006068/0.1517, allocations: 408.9 kB / 453.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.96e-05/0.1517, allocations: 15.98 kB / 453.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.1517, allocations: 8 kB / 453.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.872e-05/0.1518, allocations: 12 kB / 453.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.152, allocations: 95.78 kB / 453.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.171e-05/0.1521, allocations: 20.61 kB / 454 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.1523, allocations: 23.91 kB / 454 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.1523, allocations: 27.94 kB / 454 MB, free: 5.387 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (51): * Single equations (assignments): 51 * 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.000179/0.1525, allocations: 169.6 kB / 454.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004545/0.153, allocations: 296.5 kB / 454.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009792/0.154, allocations: 384 kB / 454.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.154, allocations: 8 kB / 454.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.154, allocations: 0 / 454.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.154, allocations: 7.984 kB / 454.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/0.1544, allocations: 321.3 kB / 455.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1544, allocations: 0 / 455.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005478/0.1549, allocations: 123.8 kB / 455.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.155, allocations: 4 kB / 455.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.155, allocations: 7.984 kB / 455.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.155, allocations: 7.938 kB / 455.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.155, allocations: 0 / 455.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.1561, allocations: 0.7148 MB / 456 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.058e-05/0.1562, allocations: 116.6 kB / 456.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/0.1562, allocations: 15.98 kB / 456.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.1565, allocations: 15.94 kB / 456.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.1565, allocations: 7.984 kB / 456.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.1566, allocations: 16.06 kB / 456.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.1568, allocations: 243.1 kB / 456.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1568, allocations: 0 / 456.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004126/0.1572, allocations: 64 kB / 456.5 MB, free: 2.793 MB / 334.1 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 (45): * Single equations (assignments): 45 * 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.0001138/0.1574, allocations: 115.1 kB / 456.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005014/0.1579, allocations: 292.6 kB / 456.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1579, allocations: 0 / 456.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.827e-05/0.1579, allocations: 29.67 kB / 456.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000722/0.1587, allocations: 213.9 kB / 457.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.1601, allocations: 0.7528 MB / 457.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.1606, allocations: 0.8118 MB / 458.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.319e-05/0.1607, allocations: 35.28 kB / 458.7 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.717e-05/0.1609, allocations: 31.42 kB / 458.8 MB, free: 472 kB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1609, allocations: 0 / 458.8 MB, free: 472 kB / 334.1 MB Notification: Performance of Templates: time 0.009074/0.1699, allocations: 3.788 MB / 462.6 MB, free: 12.67 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches