Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 111.9 kB / 17.68 MB, free: 5.332 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.001754/0.001753, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009692/0.0009692, allocations: 51.2 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.09516, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003502/0.09871, allocations: 2.191 MB / 353.7 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.09981, allocations: 0.6042 MB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.09995, allocations: 4 kB / 354.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.1001, allocations: 27.61 kB / 354.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.1004, allocations: 75.41 kB / 354.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.1007, allocations: 67.84 kB / 354.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003031/0.101, allocations: 279 kB / 354.7 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.1012, allocations: 64.94 kB / 354.8 MB, free: 360 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.1013, allocations: 119.4 kB / 354.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.1015, allocations: 143.2 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.532e-05/0.1015, allocations: 24 kB / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.789e-05/0.1016, allocations: 24 kB / 355.1 MB, free: 48 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.015e-05/0.1017, allocations: 63.69 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.1018, allocations: 127.1 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.1021, allocations: 262.9 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.1021, allocations: 4 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1021, allocations: 0 / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1021, allocations: 0 / 355.6 MB, free: 15.6 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.001115/0.1032, allocations: 0.6113 MB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1033, allocations: 16.03 kB / 356.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.09e-05/0.1034, allocations: 32.56 kB / 356.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.1038, allocations: 316.3 kB / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.1038, allocations: 16.41 kB / 356.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/0.1039, allocations: 19.91 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006601/0.1045, allocations: 367.8 kB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1046, allocations: 3.938 kB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.1046, allocations: 8 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1046, allocations: 4 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.1048, allocations: 83.95 kB / 357 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007361/0.1056, allocations: 0.5325 MB / 357.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006989/0.1063, allocations: 323.7 kB / 357.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.1065, allocations: 137.6 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.1065, allocations: 4 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.1066, allocations: 42.56 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.613e-06/0.1066, allocations: 0 / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002303/0.1089, allocations: 1.323 MB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.109, allocations: 139.3 kB / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.1094, allocations: 328.6 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.1094, allocations: 29.7 kB / 359.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.691e-05/0.1095, allocations: 149 kB / 360 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.341e-05/0.1096, allocations: 55.52 kB / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.118e-05/0.1097, allocations: 70.17 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1098, allocations: 346.8 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.1099, allocations: 68.83 kB / 360.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.1102, allocations: 322.7 kB / 360.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.1107, allocations: 417 kB / 361.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.1107, allocations: 3.938 kB / 361.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005822/0.1113, allocations: 405.4 kB / 361.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1113, allocations: 12.06 kB / 361.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.1113, allocations: 12 kB / 361.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.1114, allocations: 8 kB / 361.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.1116, allocations: 95.84 kB / 361.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.1116, allocations: 19.92 kB / 361.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.1119, allocations: 27.84 kB / 361.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.1119, allocations: 20 kB / 361.8 MB, free: 8.715 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.1121, allocations: 177.8 kB / 362 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004509/0.1125, allocations: 292.5 kB / 362.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006352/0.1132, allocations: 379.5 kB / 362.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-06/0.1132, allocations: 7.984 kB / 362.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1132, allocations: 4 kB / 362.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1132, allocations: 0 / 362.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003659/0.1136, allocations: 325.2 kB / 363 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1136, allocations: 0 / 363 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000566/0.1142, allocations: 131.8 kB / 363.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1142, allocations: 0 / 363.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.07e-05/0.1142, allocations: 19.92 kB / 363.1 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.1142, allocations: 7.938 kB / 363.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1143, allocations: 0 / 363.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009415/0.1152, allocations: 0.7107 MB / 363.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/0.1153, allocations: 112.8 kB / 364 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.753e-05/0.1154, allocations: 15.98 kB / 364 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.1156, allocations: 8 kB / 364 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.1157, allocations: 4 kB / 364 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.1157, allocations: 15.98 kB / 364 MB, free: 6.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002404/0.116, allocations: 243.1 kB / 364.3 MB, free: 6.188 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.116, allocations: 3.938 kB / 364.3 MB, free: 6.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004526/0.1164, allocations: 64 kB / 364.3 MB, free: 6.121 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 (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.0001268/0.1166, allocations: 119.2 kB / 364.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005187/0.1171, allocations: 306.1 kB / 364.7 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1171, allocations: 0 / 364.7 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.525e-05/0.1172, allocations: 23.98 kB / 364.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007448/0.1179, allocations: 216.3 kB / 365 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.1192, allocations: 0.7531 MB / 365.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.1196, allocations: 0.8034 MB / 366.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.736e-05/0.1197, allocations: 43.2 kB / 366.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.043e-05/0.1198, allocations: 27.44 kB / 366.6 MB, free: 3.777 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1198, allocations: 0 / 366.6 MB, free: 3.777 MB / 302.1 MB Notification: Performance of Templates: time 0.007339/0.1271, allocations: 3.542 MB / 370.1 MB, free: 248 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches