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.001443/0.001443, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001717/0.001717, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.19 kB / 306.9 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 50.52 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003285/0.1048, allocations: 2.222 MB / 359.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009946/0.1058, allocations: 0.616 MB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1059, allocations: 11.94 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.1061, allocations: 23.67 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.1063, allocations: 79.34 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.1065, allocations: 75.59 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002686/0.1068, allocations: 271.1 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.107, allocations: 80.84 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.1072, allocations: 107.5 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.1073, allocations: 151.2 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.74e-05/0.1074, allocations: 24 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.591e-05/0.1074, allocations: 28 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.872e-05/0.1075, allocations: 63.69 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.1076, allocations: 127.1 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.1079, allocations: 247.2 kB / 361.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1079, allocations: 0 / 361.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1079, allocations: 0 / 361.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1079, allocations: 0 / 361.6 MB, free: 9.973 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.0009905/0.1089, allocations: 0.6152 MB / 362.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.905e-05/0.1089, allocations: 8.031 kB / 362.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.228e-05/0.109, allocations: 40.47 kB / 362.2 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.1093, allocations: 312.4 kB / 362.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1093, allocations: 12.41 kB / 362.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.66e-05/0.1094, allocations: 19.91 kB / 362.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.11, allocations: 383.2 kB / 362.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.11, allocations: 0 / 362.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.11, allocations: 4 kB / 362.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.11, allocations: 4 kB / 362.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001971/0.1102, allocations: 87.95 kB / 363 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006557/0.1109, allocations: 0.5324 MB / 363.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/0.1116, allocations: 319.5 kB / 363.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.1118, allocations: 145.9 kB / 364 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.1118, allocations: 4 kB / 364 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.1118, allocations: 42.5 kB / 364.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.412e-06/0.1118, allocations: 0 / 364.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002207/0.1141, allocations: 1.325 MB / 365.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.1142, allocations: 142.6 kB / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/0.1146, allocations: 324.5 kB / 365.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.1146, allocations: 37.7 kB / 365.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.1147, allocations: 141.1 kB / 366 MB, free: 5.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.548e-05/0.1148, allocations: 51.52 kB / 366.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.41e-05/0.1149, allocations: 70.16 kB / 366.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.115, allocations: 350.8 kB / 366.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.1152, allocations: 72.83 kB / 366.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.1155, allocations: 314.8 kB / 366.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/0.1159, allocations: 413 kB / 367.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.116, allocations: 7.938 kB / 367.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000595/0.1166, allocations: 401.4 kB / 367.7 MB, free: 3.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1166, allocations: 16.03 kB / 367.7 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.1166, allocations: 8.078 kB / 367.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.1166, allocations: 12 kB / 367.7 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.1169, allocations: 95.83 kB / 367.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.1169, allocations: 19.92 kB / 367.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.1171, allocations: 35.83 kB / 367.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.1172, allocations: 24 kB / 367.9 MB, free: 3.062 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.0001687/0.1173, allocations: 165.5 kB / 368 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004517/0.1178, allocations: 293 kB / 368.3 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006213/0.1184, allocations: 375.4 kB / 368.7 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.1185, allocations: 11.98 kB / 368.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.1185, allocations: 0 / 368.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1185, allocations: 3.984 kB / 368.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003574/0.1188, allocations: 325.2 kB / 369 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.1189, allocations: 4 kB / 369 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00054/0.1194, allocations: 127.8 kB / 369.1 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-06/0.1194, allocations: 4 kB / 369.1 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.1194, allocations: 11.94 kB / 369.2 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.371e-06/0.1195, allocations: 7.938 kB / 369.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1195, allocations: 0 / 369.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009615/0.1204, allocations: 0.7187 MB / 369.9 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.482e-05/0.1205, allocations: 108.7 kB / 370 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.55e-05/0.1206, allocations: 12 kB / 370 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.1208, allocations: 15.98 kB / 370 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.348e-05/0.1209, allocations: 0 / 370 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.1209, allocations: 12 kB / 370 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002684/0.1212, allocations: 247 kB / 370.3 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1212, allocations: 0 / 370.3 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004311/0.1216, allocations: 64 kB / 370.3 MB, free: 500 kB / 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.0001824/0.1218, allocations: 119.2 kB / 370.4 MB, free: 372 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006486/0.1225, allocations: 334.1 kB / 370.8 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1225, allocations: 3.938 kB / 370.8 MB, free: 36 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.543e-05/0.1226, allocations: 27.98 kB / 370.8 MB, free: 8 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1686/0.2911, allocations: 206.3 kB / 371 MB, free: 20.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.2927, allocations: 0.7395 MB / 371.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.293, allocations: 0.8089 MB / 372.6 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.2932, allocations: 36.69 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.6e-05/0.2933, allocations: 30.25 kB / 372.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2933, allocations: 0.625 kB / 372.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of Templates: time 0.008645/0.3019, allocations: 3.54 MB / 376.2 MB, free: 19.11 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches