Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001318, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001546, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.56 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003861/0.1069, allocations: 2.223 MB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.108, allocations: 0.6083 MB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.1081, allocations: 7.938 kB / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.1083, allocations: 23.67 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/0.1086, allocations: 75.34 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.1089, allocations: 75.84 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002732/0.1091, allocations: 275.1 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.1093, allocations: 72.58 kB / 362.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.1095, allocations: 123.4 kB / 362.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.1097, allocations: 151.1 kB / 362.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.1098, allocations: 28 kB / 362.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.357e-05/0.1098, allocations: 24 kB / 362.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.094e-05/0.1099, allocations: 63.69 kB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.11, allocations: 131.1 kB / 362.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.1102, allocations: 254.9 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1103, allocations: 0 / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1103, allocations: 0 / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1103, allocations: 0 / 363 MB, free: 9.215 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.001038/0.1113, allocations: 0.6191 MB / 363.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1114, allocations: 12.03 kB / 363.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.1114, allocations: 36.47 kB / 363.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.1118, allocations: 316.4 kB / 364 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.1119, allocations: 12.41 kB / 364 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.1119, allocations: 23.89 kB / 364 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/0.1125, allocations: 367.6 kB / 364.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1126, allocations: 0 / 364.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.1126, allocations: 4 kB / 364.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.1126, allocations: 4 kB / 364.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.1128, allocations: 95.89 kB / 364.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006668/0.1135, allocations: 0.5363 MB / 365 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006378/0.1141, allocations: 308.4 kB / 365.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.1143, allocations: 142.2 kB / 365.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.1144, allocations: 11.92 kB / 365.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.1144, allocations: 38.56 kB / 365.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.483e-06/0.1144, allocations: 0 / 365.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002357/0.1168, allocations: 1.33 MB / 366.8 MB, free: 5.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.1169, allocations: 138.7 kB / 367 MB, free: 4.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003963/0.1173, allocations: 328.6 kB / 367.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.1174, allocations: 33.7 kB / 367.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.1175, allocations: 145.1 kB / 367.5 MB, free: 4.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.1175, allocations: 47.53 kB / 367.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.43e-05/0.1176, allocations: 62.17 kB / 367.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1178, allocations: 354.8 kB / 367.9 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.118, allocations: 72.77 kB / 368 MB, free: 3.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.1183, allocations: 314.8 kB / 368.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004683/0.1187, allocations: 417 kB / 368.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1188, allocations: 7.938 kB / 368.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005987/0.1194, allocations: 409.4 kB / 369.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.1194, allocations: 18.67 kB / 369.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.1194, allocations: 11.94 kB / 369.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-05/0.1195, allocations: 12 kB / 369.1 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.1197, allocations: 91.84 kB / 369.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/0.1198, allocations: 19.92 kB / 369.2 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.12, allocations: 23.84 kB / 369.3 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.12, allocations: 24 kB / 369.3 MB, free: 2.305 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.0002037/0.1202, allocations: 173 kB / 369.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004866/0.1207, allocations: 296.9 kB / 369.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006416/0.1214, allocations: 367.5 kB / 370.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.1214, allocations: 8 kB / 370.1 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1214, allocations: 0 / 370.1 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1214, allocations: 3.984 kB / 370.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.1218, allocations: 337.2 kB / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1218, allocations: 0 / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005299/0.1223, allocations: 127.8 kB / 370.6 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.1223, allocations: 4 kB / 370.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.1224, allocations: 8.172 kB / 370.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.1224, allocations: 8.062 kB / 370.6 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1224, allocations: 0 / 370.6 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000908/0.1233, allocations: 0.7225 MB / 371.3 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.5e-05/0.1234, allocations: 108.8 kB / 371.4 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.078e-05/0.1235, allocations: 12 kB / 371.4 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.1237, allocations: 15.98 kB / 371.5 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.1238, allocations: 4 kB / 371.5 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.1238, allocations: 15.98 kB / 371.5 MB, free: 20 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.19/0.3138, allocations: 240.3 kB / 371.7 MB, free: 20.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3138, allocations: 0 / 371.7 MB, free: 20.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006789/0.3145, allocations: 62.28 kB / 371.8 MB, free: 20.72 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.0001664/0.3147, allocations: 110.8 kB / 371.9 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006979/0.3154, allocations: 301.7 kB / 372.2 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3154, allocations: 0.8438 kB / 372.2 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.442e-05/0.3155, allocations: 27.28 kB / 372.2 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008992/0.3164, allocations: 216.6 kB / 372.4 MB, free: 20.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.3179, allocations: 0.7245 MB / 373.1 MB, free: 20.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.3184, allocations: 0.8061 MB / 373.9 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.3185, allocations: 34.28 kB / 374 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.3186, allocations: 31.83 kB / 374 MB, free: 19.5 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3186, allocations: 3.938 kB / 374 MB, free: 19.5 MB / 302.1 MB Notification: Performance of Templates: time 0.0107/0.3293, allocations: 3.552 MB / 377.6 MB, free: 19.28 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches