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.001372/0.001372, allocations: 93.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 200 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002457/0.0002458, allocations: 4 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1098, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002223/0.1121, allocations: 1.83 MB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000938/0.1131, allocations: 0.5931 MB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.1132, allocations: 3.938 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.214e-05/0.1133, allocations: 15.8 kB / 360.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002244/0.1135, allocations: 67.77 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.1137, allocations: 59.92 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.114, allocations: 171.6 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.1141, allocations: 68.48 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.1143, allocations: 99.48 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.1144, allocations: 127.3 kB / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.1145, allocations: 8 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.817e-05/0.1145, allocations: 12 kB / 361.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.454e-05/0.1146, allocations: 51.73 kB / 361.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.72e-05/0.1146, allocations: 61.58 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.1148, allocations: 175.8 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.1148, allocations: 4 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1148, allocations: 0 / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1148, allocations: 4 kB / 361.4 MB, free: 10.59 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.0008979/0.1157, allocations: 0.5763 MB / 362 MB, free: 9.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.1158, allocations: 8.031 kB / 362 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.121e-05/0.1158, allocations: 35.53 kB / 362 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.1162, allocations: 303.3 kB / 362.3 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.1162, allocations: 12.28 kB / 362.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.1163, allocations: 15.95 kB / 362.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005884/0.1168, allocations: 371.5 kB / 362.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1169, allocations: 4 kB / 362.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.1169, allocations: 4 kB / 362.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1169, allocations: 4 kB / 362.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.1171, allocations: 91.95 kB / 362.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006625/0.1178, allocations: 0.5402 MB / 363.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006269/0.1184, allocations: 315 kB / 363.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.1184, allocations: 8.047 kB / 363.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.1185, allocations: 42.64 kB / 363.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.392e-06/0.1185, allocations: 0 / 363.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=34): time 0.001952/0.1204, allocations: 1.194 MB / 364.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.894e-05/0.1206, allocations: 126.7 kB / 365 MB, free: 6.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.1209, allocations: 328.5 kB / 365.3 MB, free: 6.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.1209, allocations: 33.7 kB / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.191e-05/0.121, allocations: 144.7 kB / 365.5 MB, free: 6.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.1211, allocations: 47.53 kB / 365.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.1211, allocations: 8 kB / 365.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1212, allocations: 346.8 kB / 365.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.1213, allocations: 68.75 kB / 366 MB, free: 5.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.1216, allocations: 277.9 kB / 366.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.1217, allocations: 115.8 kB / 366.3 MB, free: 5.168 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1218, allocations: 4 kB / 366.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005108/0.1223, allocations: 369.4 kB / 366.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.1223, allocations: 15.94 kB / 366.7 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1223, allocations: 8 kB / 366.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.1223, allocations: 12 kB / 366.7 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.1226, allocations: 83.84 kB / 366.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.1226, allocations: 19.92 kB / 366.8 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.1228, allocations: 23.86 kB / 366.9 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.1228, allocations: 20.08 kB / 366.9 MB, free: 4.617 MB / 302.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.0001408/0.123, allocations: 165.6 kB / 367.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003744/0.1233, allocations: 265.7 kB / 367.3 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005201/0.1239, allocations: 344.5 kB / 367.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1239, allocations: 4.656 kB / 367.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1239, allocations: 4 kB / 367.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1239, allocations: 0 / 367.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.1242, allocations: 317.2 kB / 368 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1243, allocations: 0 / 368 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000491/0.1248, allocations: 119.8 kB / 368.1 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1248, allocations: 7.938 kB / 368.1 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.1248, allocations: 12.06 kB / 368.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.1248, allocations: 3.984 kB / 368.1 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1248, allocations: 4 kB / 368.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008185/0.1256, allocations: 0.6935 MB / 368.8 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.508e-05/0.1257, allocations: 116.6 kB / 368.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.1258, allocations: 12 kB / 368.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.126, allocations: 12 kB / 368.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.26e-05/0.1261, allocations: 12 kB / 369 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1261, allocations: 12 kB / 369 MB, free: 2.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002273/0.1263, allocations: 243.1 kB / 369.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1263, allocations: 0 / 369.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000392/0.1267, allocations: 60 kB / 369.3 MB, free: 2.133 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.000104/0.1268, allocations: 107.2 kB / 369.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004177/0.1272, allocations: 265.4 kB / 369.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.1273, allocations: 4 kB / 369.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.45e-05/0.1273, allocations: 31.92 kB / 369.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004913/0.1278, allocations: 180.6 kB / 369.8 MB, free: 1.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.1289, allocations: 0.7996 MB / 370.6 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1798/0.3088, allocations: 0.8019 MB / 371.4 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.309, allocations: 36.58 kB / 371.5 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.3092, allocations: 29.72 kB / 371.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3092, allocations: 0 / 371.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of Templates: time 0.008157/0.3173, allocations: 2.925 MB / 374.4 MB, free: 19.38 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","../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches