Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007007/0.0007009, allocations: 94.25 kB / 16.04 MB, free: 5.742 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06751/0.06751, allocations: 12.63 MB / 29.41 MB, free: 6.09 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.000147/0.000147, allocations: 4 kB / 40.27 MB, free: 0.6289 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004443/0.004602, allocations: 2.835 MB / 43.1 MB, free: 6.07 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 1.401/1.406, allocations: 278.2 MB / 321.3 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008989/1.407, allocations: 0.5707 MB / 321.9 MB, free: 9.469 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/1.407, allocations: 4 kB / 321.9 MB, free: 9.465 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/1.407, allocations: 15.8 kB / 321.9 MB, free: 9.449 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002424/1.407, allocations: 64.97 kB / 321.9 MB, free: 9.387 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/1.408, allocations: 59.88 kB / 322 MB, free: 9.328 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002581/1.408, allocations: 268.8 kB / 322.3 MB, free: 9.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/1.408, allocations: 140.4 kB / 322.4 MB, free: 8.926 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/1.408, allocations: 99.38 kB / 322.5 MB, free: 8.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/1.408, allocations: 127.2 kB / 322.6 MB, free: 8.703 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/1.408, allocations: 12.59 kB / 322.6 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.929e-05/1.408, allocations: 12 kB / 322.6 MB, free: 8.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.462e-05/1.408, allocations: 51.11 kB / 322.7 MB, free: 8.633 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/1.409, allocations: 144.8 kB / 322.8 MB, free: 8.484 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002132/1.409, allocations: 238.9 kB / 323.1 MB, free: 8.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/1.409, allocations: 0 / 323.1 MB, free: 8.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.403e-06/1.409, allocations: 0 / 323.1 MB, free: 8.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/1.409, allocations: 0 / 323.1 MB, free: 8.25 MB / 250.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.0009316/1.41, allocations: 0.5804 MB / 323.6 MB, free: 7.621 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/1.41, allocations: 13.09 kB / 323.7 MB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.608e-05/1.41, allocations: 32.56 kB / 323.7 MB, free: 7.578 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/1.41, allocations: 316.3 kB / 324 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/1.41, allocations: 17.56 kB / 324 MB, free: 7.219 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/1.41, allocations: 15.91 kB / 324 MB, free: 7.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/1.411, allocations: 371.2 kB / 324.4 MB, free: 6.828 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/1.411, allocations: 0 / 324.4 MB, free: 6.828 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/1.411, allocations: 8 kB / 324.4 MB, free: 6.82 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/1.411, allocations: 0.875 kB / 324.4 MB, free: 6.82 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/1.411, allocations: 97.83 kB / 324.5 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006669/1.412, allocations: 0.5398 MB / 325 MB, free: 6.133 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006172/1.412, allocations: 310.4 kB / 325.3 MB, free: 5.805 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/1.413, allocations: 136.8 kB / 325.5 MB, free: 5.664 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/1.413, allocations: 9.188 kB / 325.5 MB, free: 5.656 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/1.413, allocations: 47.39 kB / 325.5 MB, free: 5.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.332e-06/1.413, allocations: 0 / 325.5 MB, free: 5.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.002052/1.415, allocations: 1.336 MB / 326.9 MB, free: 4.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.969e-05/1.415, allocations: 132.2 kB / 327 MB, free: 4.027 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/1.415, allocations: 328.6 kB / 327.3 MB, free: 3.695 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/1.415, allocations: 35.3 kB / 327.4 MB, free: 3.656 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.423e-05/1.415, allocations: 149 kB / 327.5 MB, free: 3.508 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.996e-05/1.415, allocations: 47.53 kB / 327.5 MB, free: 3.461 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/1.415, allocations: 5.125 kB / 327.6 MB, free: 3.457 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/1.416, allocations: 359.4 kB / 327.9 MB, free: 3.098 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/1.416, allocations: 61.56 kB / 328 MB, free: 3.039 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003093/1.416, allocations: 322.9 kB / 328.3 MB, free: 2.598 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003926/1.416, allocations: 420.9 kB / 328.7 MB, free: 2.066 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.416, allocations: 7.938 kB / 328.7 MB, free: 2.059 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005475/1.417, allocations: 405.3 kB / 329.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/1.417, allocations: 15.94 kB / 329.1 MB, free: 1.641 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/1.417, allocations: 12.16 kB / 329.1 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/1.417, allocations: 12 kB / 329.1 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/1.417, allocations: 95.83 kB / 329.2 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/1.417, allocations: 15.94 kB / 329.2 MB, free: 1.508 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/1.418, allocations: 23.94 kB / 329.3 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/1.418, allocations: 23.98 kB / 329.3 MB, free: 1.461 MB / 250.7 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.0001544/1.418, allocations: 165.6 kB / 329.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004322/1.418, allocations: 301.2 kB / 329.7 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005786/1.419, allocations: 380.2 kB / 330.1 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/1.419, allocations: 4 kB / 330.1 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/1.419, allocations: 0 / 330.1 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/1.419, allocations: 0 / 330.1 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003351/1.419, allocations: 337.2 kB / 330.4 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/1.419, allocations: 3.938 kB / 330.5 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005523/1.42, allocations: 131.8 kB / 330.6 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/1.42, allocations: 0 / 330.6 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/1.42, allocations: 12 kB / 330.6 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/1.42, allocations: 4 kB / 330.6 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.42, allocations: 0 / 330.6 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009464/1.421, allocations: 0.7184 MB / 331.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.645e-05/1.421, allocations: 112.7 kB / 331.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.436e-05/1.421, allocations: 16 kB / 331.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/1.421, allocations: 8 kB / 331.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/1.421, allocations: 7.984 kB / 331.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/1.421, allocations: 12 kB / 331.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002555/1.421, allocations: 247 kB / 331.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.421, allocations: 4.062 kB / 331.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003937/1.422, allocations: 64 kB / 331.8 MB, free: 14.86 MB / 266.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 (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.0001662/1.422, allocations: 111.5 kB / 331.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005178/1.423, allocations: 296.6 kB / 332.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.423, allocations: 0 / 332.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.494e-05/1.423, allocations: 31.98 kB / 332.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007518/1.423, allocations: 222.2 kB / 332.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/1.425, allocations: 0.9107 MB / 333.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/1.425, allocations: 0.8156 MB / 334.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.198e-05/1.425, allocations: 31.28 kB / 334.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/1.425, allocations: 35.42 kB / 334.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of SimCode: time 2.31e-07/1.425, allocations: 0 / 334.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Templates: time 0.006604/1.432, allocations: 3.262 MB / 337.5 MB, free: 9.094 MB / 266.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