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.001215/0.001215, allocations: 96.7 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002027/0.002027, allocations: 174.3 kB / 16.62 MB, free: 6.434 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.798/1.798, allocations: 205.4 MB / 222.8 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0822/0.0822, allocations: 12.59 MB / 283.7 MB, free: 8.688 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.0007347/0.0007348, allocations: 24 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09325, allocations: 50.38 MB / 394.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.002907/0.09621, allocations: 1.841 MB / 396.7 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.09799, allocations: 0.6093 MB / 397.4 MB, free: 320 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003243/0.09837, allocations: 4 kB / 397.4 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.09858, allocations: 15.8 kB / 397.4 MB, free: 300 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004923/0.09909, allocations: 59.55 kB / 397.4 MB, free: 240 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.09949, allocations: 55.92 kB / 397.5 MB, free: 184 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.09995, allocations: 258.9 kB / 397.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.1002, allocations: 52.72 kB / 397.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.1004, allocations: 99.45 kB / 397.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.1006, allocations: 131.3 kB / 398 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.552e-05/0.1007, allocations: 12 kB / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.976e-05/0.1007, allocations: 11.94 kB / 398 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.677e-05/0.1008, allocations: 47.7 kB / 398.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.1009, allocations: 61.58 kB / 398.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000223/0.1012, allocations: 175.8 kB / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.1012, allocations: 0 / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1012, allocations: 3.828 kB / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.1012, allocations: 0 / 398.3 MB, free: 15.34 MB / 302.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.001173/0.1024, allocations: 0.5879 MB / 398.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.1024, allocations: 8.031 kB / 398.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.1026, allocations: 31.62 kB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/0.103, allocations: 311.2 kB / 399.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.1031, allocations: 12.28 kB / 399.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/0.1031, allocations: 19.94 kB / 399.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006813/0.1038, allocations: 384.7 kB / 399.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1038, allocations: 0 / 399.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.1039, allocations: 4 kB / 399.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1039, allocations: 4 kB / 399.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.1041, allocations: 91.95 kB / 399.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000885/0.105, allocations: 0.5325 MB / 400.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008916/0.1059, allocations: 315.9 kB / 400.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.1061, allocations: 139 kB / 400.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.1062, allocations: 4 kB / 400.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.1062, allocations: 42.55 kB / 400.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.462e-06/0.1062, allocations: 0 / 400.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002384/0.1086, allocations: 1.328 MB / 402.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/0.1088, allocations: 150.5 kB / 402.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004091/0.1092, allocations: 332.6 kB / 402.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.1092, allocations: 29.7 kB / 402.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1093, allocations: 149.1 kB / 402.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.025e-05/0.1094, allocations: 47.53 kB / 402.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.1094, allocations: 11.94 kB / 402.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1096, allocations: 346.8 kB / 403.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.1098, allocations: 72.83 kB / 403.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.1101, allocations: 326.7 kB / 403.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.1104, allocations: 123.9 kB / 403.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.1104, allocations: 0 / 403.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006808/0.1111, allocations: 417.4 kB / 404.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.1111, allocations: 8 kB / 404.1 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.1111, allocations: 12 kB / 404.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.037e-05/0.1112, allocations: 16.03 kB / 404.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.1114, allocations: 99.77 kB / 404.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.1115, allocations: 15.94 kB / 404.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.1117, allocations: 23.89 kB / 404.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.1118, allocations: 24 kB / 404.3 MB, free: 8.898 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001989/0.112, allocations: 169.6 kB / 404.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004841/0.1125, allocations: 296.8 kB / 404.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006479/0.1131, allocations: 384.2 kB / 405.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.1131, allocations: 4 kB / 405.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1131, allocations: 0 / 405.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1132, allocations: 4 kB / 405.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003916/0.1136, allocations: 317.4 kB / 405.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1136, allocations: 0 / 405.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005592/0.1141, allocations: 127.8 kB / 405.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.1142, allocations: 7.953 kB / 405.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/0.1142, allocations: 8 kB / 405.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.279e-06/0.1142, allocations: 4 kB / 405.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1142, allocations: 0 / 405.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1153, allocations: 0.7263 MB / 406.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.1154, allocations: 116.7 kB / 406.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.948e-05/0.1155, allocations: 11.95 kB / 406.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.1157, allocations: 15.98 kB / 406.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.1158, allocations: 4.188 kB / 406.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.1158, allocations: 12 kB / 406.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002792/0.1161, allocations: 247 kB / 406.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1161, allocations: 0 / 406.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000464/0.1166, allocations: 68.06 kB / 406.8 MB, free: 6.305 MB / 302.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 (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.0001081/0.1167, allocations: 122.8 kB / 406.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.1172, allocations: 293.1 kB / 407.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1172, allocations: 0 / 407.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.1173, allocations: 31.92 kB / 407.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007351/0.118, allocations: 204.9 kB / 407.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.1196, allocations: 0.8716 MB / 408.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.1201, allocations: 0.8117 MB / 409.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.1202, allocations: 39.27 kB / 409.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.839e-05/0.1203, allocations: 31.44 kB / 409.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1203, allocations: 0 / 409.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of Templates: time 0.007974/0.1283, allocations: 3.123 MB / 412.3 MB, free: 0.7266 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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