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.001255/0.001255, allocations: 93.66 kB / 16.3 MB, free: 6.457 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.001176/0.001176, allocations: 185.1 kB / 17.2 MB, free: 6.34 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.318/1.318, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002342/0.0002343, allocations: 11.91 kB / 300.7 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.09759, allocations: 50.43 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002425/0.1001, allocations: 1.827 MB / 353 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009912/0.1011, allocations: 0.5697 MB / 353.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.1012, allocations: 0 / 353.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.1014, allocations: 19.8 kB / 353.5 MB, free: 9.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.1017, allocations: 63.77 kB / 353.6 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.102, allocations: 55.88 kB / 353.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002652/0.1022, allocations: 175.6 kB / 353.8 MB, free: 9.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.1024, allocations: 57 kB / 353.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.1025, allocations: 91.55 kB / 354 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.1027, allocations: 123.4 kB / 354.1 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.077e-05/0.1028, allocations: 8 kB / 354.1 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.178e-05/0.1028, allocations: 12 kB / 354.1 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.936e-05/0.1029, allocations: 55.78 kB / 354.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.237e-05/0.1029, allocations: 65.52 kB / 354.2 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.1032, allocations: 179.5 kB / 354.4 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1032, allocations: 3.938 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1032, allocations: 0 / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.1032, allocations: 4 kB / 354.4 MB, free: 8.438 MB / 286.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.001102/0.1043, allocations: 0.5724 MB / 355 MB, free: 7.816 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1043, allocations: 8.031 kB / 355 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.467e-05/0.1044, allocations: 39.58 kB / 355 MB, free: 7.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.1048, allocations: 307.2 kB / 355.3 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.1049, allocations: 12.27 kB / 355.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.1049, allocations: 19.89 kB / 355.4 MB, free: 7.398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000595/0.1055, allocations: 377 kB / 355.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.1055, allocations: 3.938 kB / 355.7 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.1056, allocations: 7.953 kB / 355.8 MB, free: 7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.1056, allocations: 4 kB / 355.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.1058, allocations: 91.95 kB / 355.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007149/0.1065, allocations: 0.5287 MB / 356.4 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006921/0.1072, allocations: 307.7 kB / 356.7 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.1073, allocations: 11.95 kB / 356.7 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.1073, allocations: 46.64 kB / 356.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.512e-06/0.1073, allocations: 0 / 356.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=34): time 0.002069/0.1094, allocations: 1.194 MB / 357.9 MB, free: 4.645 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1095, allocations: 134.7 kB / 358.1 MB, free: 4.488 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.1099, allocations: 329.2 kB / 358.4 MB, free: 4.156 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.1099, allocations: 29.7 kB / 358.4 MB, free: 4.121 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.11, allocations: 144.8 kB / 358.6 MB, free: 3.973 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.582e-05/0.1101, allocations: 47.56 kB / 358.6 MB, free: 3.926 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.22e-05/0.1101, allocations: 8 kB / 358.6 MB, free: 3.918 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1102, allocations: 346.8 kB / 358.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.1104, allocations: 68.66 kB / 359 MB, free: 3.5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002462/0.1106, allocations: 278 kB / 359.3 MB, free: 3.129 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.1108, allocations: 119.8 kB / 359.4 MB, free: 3.012 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.1108, allocations: 4 kB / 359.4 MB, free: 3.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005262/0.1114, allocations: 364.9 kB / 359.8 MB, free: 2.645 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1114, allocations: 8 kB / 359.8 MB, free: 2.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.1114, allocations: 8 kB / 359.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1114, allocations: 12 kB / 359.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.1117, allocations: 83.84 kB / 359.9 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.1117, allocations: 16.48 kB / 359.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.1119, allocations: 23.94 kB / 359.9 MB, free: 2.496 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.112, allocations: 20 kB / 359.9 MB, free: 2.477 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (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 prepare postOptimizeDAE: time 0.0001547/0.1121, allocations: 165.6 kB / 360.1 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004005/0.1125, allocations: 265.6 kB / 360.3 MB, free: 2.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000562/0.1131, allocations: 344.5 kB / 360.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1131, allocations: 4 kB / 360.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1131, allocations: 8 kB / 360.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1131, allocations: 0 / 360.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.1135, allocations: 309.4 kB / 361 MB, free: 1.332 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1135, allocations: 3.953 kB / 361 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/0.114, allocations: 115.8 kB / 361.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1141, allocations: 4 kB / 361.1 MB, free: 1.211 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.1141, allocations: 16.19 kB / 361.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1141, allocations: 0 / 361.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1141, allocations: 4 kB / 361.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008825/0.115, allocations: 0.7013 MB / 361.8 MB, free: 468 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.997e-05/0.1151, allocations: 108.8 kB / 361.9 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.1151, allocations: 15.98 kB / 362 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.1154, allocations: 12 kB / 362 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.02e-05/0.1154, allocations: 3.984 kB / 362 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.1155, allocations: 12 kB / 362 MB, free: 296 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002338/0.1157, allocations: 243.1 kB / 362.2 MB, free: 56 kB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1157, allocations: 0 / 362.2 MB, free: 56 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004282/0.1162, allocations: 60.05 kB / 362.3 MB, free: 15.99 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 (39): * Single equations (assignments): 39 * 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.000122/0.1163, allocations: 111.1 kB / 362.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004575/0.1167, allocations: 269.3 kB / 362.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1168, allocations: 8 kB / 362.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.86e-05/0.1168, allocations: 31.92 kB / 362.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005537/0.1174, allocations: 185.3 kB / 362.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.1187, allocations: 0.8044 MB / 363.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.1191, allocations: 0.8112 MB / 364.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.983e-05/0.1192, allocations: 26.97 kB / 364.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.445e-05/0.1193, allocations: 35.42 kB / 364.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1193, allocations: 4 kB / 364.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of Templates: time 0.006468/0.1258, allocations: 2.928 MB / 367.5 MB, free: 10.73 MB / 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches