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.0008428/0.0008428, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0009361/0.0009364, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.448/1.448, allocations: 223.3 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003513, allocations: 6.906 kB / 300.8 MB, free: 5.609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1184, allocations: 50.42 MB / 351.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002367/0.1209, allocations: 1.838 MB / 353.1 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009603/0.1218, allocations: 0.5697 MB / 353.6 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.122, allocations: 0 / 353.6 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.1221, allocations: 15.8 kB / 353.7 MB, free: 9.031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.1223, allocations: 59.56 kB / 353.7 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.1226, allocations: 59.92 kB / 353.8 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002852/0.1229, allocations: 243.1 kB / 354 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.123, allocations: 68.58 kB / 354.1 MB, free: 8.609 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.1232, allocations: 91.5 kB / 354.2 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.1234, allocations: 127.3 kB / 354.3 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.659e-05/0.1234, allocations: 12 kB / 354.3 MB, free: 8.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.681e-05/0.1234, allocations: 8 kB / 354.3 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.04e-05/0.1235, allocations: 51.69 kB / 354.4 MB, free: 8.324 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.543e-05/0.1236, allocations: 65.52 kB / 354.4 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.1238, allocations: 183.5 kB / 354.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1238, allocations: 0 / 354.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1238, allocations: 0 / 354.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1238, allocations: 0 / 354.6 MB, free: 8.074 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.001011/0.1248, allocations: 0.5802 MB / 355.2 MB, free: 7.445 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.1248, allocations: 8.031 kB / 355.2 MB, free: 7.438 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.231e-05/0.1249, allocations: 35.58 kB / 355.2 MB, free: 7.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.1253, allocations: 299.3 kB / 355.5 MB, free: 7.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.1253, allocations: 12.28 kB / 355.5 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.741e-05/0.1254, allocations: 19.91 kB / 355.5 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006372/0.126, allocations: 373 kB / 355.9 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.126, allocations: 0 / 355.9 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.1261, allocations: 7.953 kB / 355.9 MB, free: 6.648 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1261, allocations: 4 kB / 355.9 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.1263, allocations: 99.88 kB / 356 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007165/0.127, allocations: 0.521 MB / 356.5 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006631/0.1277, allocations: 323.7 kB / 356.9 MB, free: 5.625 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.1279, allocations: 147.7 kB / 357 MB, free: 5.473 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.128, allocations: 7.984 kB / 357 MB, free: 5.465 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.128, allocations: 34.56 kB / 357 MB, free: 5.422 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.846e-06/0.128, allocations: 4 kB / 357 MB, free: 5.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002227/0.1302, allocations: 1.316 MB / 358.4 MB, free: 4.012 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.1304, allocations: 142.8 kB / 358.5 MB, free: 3.848 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.1307, allocations: 332.5 kB / 358.8 MB, free: 3.512 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.1308, allocations: 29.7 kB / 358.9 MB, free: 3.477 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.213e-05/0.1309, allocations: 149 kB / 359 MB, free: 3.328 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.71e-05/0.1309, allocations: 47.53 kB / 359 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.1309, allocations: 8 kB / 359.1 MB, free: 3.273 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1311, allocations: 346.8 kB / 359.4 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.1312, allocations: 76.83 kB / 359.5 MB, free: 2.848 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.1315, allocations: 318.7 kB / 359.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.1317, allocations: 127.8 kB / 359.9 MB, free: 2.293 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1317, allocations: 8 kB / 359.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005651/0.1323, allocations: 409.3 kB / 360.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1323, allocations: 8 kB / 360.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.1324, allocations: 12.16 kB / 360.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.1324, allocations: 16 kB / 360.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.1326, allocations: 95.83 kB / 360.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.947e-05/0.1327, allocations: 15.94 kB / 360.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.1329, allocations: 24 kB / 360.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.1329, allocations: 27.94 kB / 360.5 MB, free: 1.684 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.1331, allocations: 169.5 kB / 360.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004643/0.1336, allocations: 297.3 kB / 361 MB, free: 1.211 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006324/0.1342, allocations: 375.5 kB / 361.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.1342, allocations: 8 kB / 361.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1342, allocations: 0 / 361.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1342, allocations: 0 / 361.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.1346, allocations: 325.2 kB / 361.7 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1346, allocations: 8.062 kB / 361.7 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005355/0.1352, allocations: 127.8 kB / 361.8 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.493e-06/0.1352, allocations: 4 kB / 361.8 MB, free: 332 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.1352, allocations: 8 kB / 361.8 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.1352, allocations: 0 / 361.8 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1352, allocations: 4 kB / 361.8 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009612/0.1362, allocations: 0.7184 MB / 362.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.781e-05/0.1363, allocations: 120.7 kB / 362.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.1364, allocations: 8 kB / 362.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.1366, allocations: 19.94 kB / 362.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.553e-05/0.1366, allocations: 3.984 kB / 362.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.1367, allocations: 12 kB / 362.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.1369, allocations: 243.1 kB / 362.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1369, allocations: 8 kB / 362.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004156/0.1373, allocations: 64 kB / 363 MB, free: 15.09 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 (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.0001361/0.1375, allocations: 107.7 kB / 363.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004835/0.138, allocations: 300.6 kB / 363.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.138, allocations: 0 / 363.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.501e-05/0.1381, allocations: 29.23 kB / 363.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000717/0.1388, allocations: 211.6 kB / 363.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.1401, allocations: 0.8674 MB / 364.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.1405, allocations: 0.8034 MB / 365.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.1406, allocations: 39.27 kB / 365.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.824e-05/0.1407, allocations: 27.44 kB / 365.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1407, allocations: 0 / 365.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of Templates: time 0.006708/0.1474, allocations: 3.112 MB / 368.5 MB, free: 9.551 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","/var/lib/jenkins/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