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.001495/0.001495, allocations: 102.1 kB / 17.59 MB, free: 5.418 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.001642/0.001642, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.437/1.437, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 49.58 kB / 301.3 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1203, allocations: 49.45 MB / 350.7 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004186/0.1245, allocations: 2.211 MB / 352.9 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.1258, allocations: 0.5926 MB / 353.5 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.126, allocations: 4 kB / 353.5 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.1262, allocations: 27.61 kB / 353.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002929/0.1265, allocations: 75.41 kB / 353.6 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002904/0.1268, allocations: 75.84 kB / 353.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003359/0.1271, allocations: 279 kB / 354 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.1273, allocations: 60.97 kB / 354 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.1275, allocations: 115.4 kB / 354.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.1277, allocations: 143.2 kB / 354.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.289e-05/0.1277, allocations: 20 kB / 354.3 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.19e-05/0.1278, allocations: 24 kB / 354.3 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.581e-05/0.1278, allocations: 71.69 kB / 354.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.128, allocations: 127.1 kB / 354.5 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.1283, allocations: 243.3 kB / 354.8 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.1283, allocations: 0 / 354.8 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1283, allocations: 3.938 kB / 354.8 MB, free: 284 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1283, allocations: 4 kB / 354.8 MB, free: 280 kB / 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.001248/0.1296, allocations: 0.6191 MB / 355.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.1296, allocations: 12.03 kB / 355.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.767e-05/0.1297, allocations: 32.56 kB / 355.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.1301, allocations: 316.3 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.1301, allocations: 12.41 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.1302, allocations: 19.91 kB / 355.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006924/0.1309, allocations: 367.9 kB / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1309, allocations: 0 / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.1309, allocations: 4 kB / 356.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.1309, allocations: 4 kB / 356.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.1312, allocations: 91.89 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007258/0.1319, allocations: 0.5326 MB / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000709/0.1326, allocations: 320.2 kB / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.1329, allocations: 134.6 kB / 357.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.1329, allocations: 11.97 kB / 357.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.133, allocations: 38.56 kB / 357.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.133, allocations: 0 / 357.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002559/0.1355, allocations: 1.328 MB / 358.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/0.1357, allocations: 142.6 kB / 358.7 MB, free: 12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004807/0.1362, allocations: 328.6 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.1363, allocations: 29.7 kB / 359.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.1364, allocations: 145.1 kB / 359.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.638e-05/0.1365, allocations: 47.53 kB / 359.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.874e-05/0.1366, allocations: 66.14 kB / 359.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.1368, allocations: 354.8 kB / 359.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.1369, allocations: 64.84 kB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.1373, allocations: 322.7 kB / 360.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004887/0.1378, allocations: 417 kB / 360.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/0.1378, allocations: 7.938 kB / 360.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006407/0.1384, allocations: 409.2 kB / 360.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.1385, allocations: 8 kB / 360.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1385, allocations: 16.16 kB / 360.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.604e-05/0.1385, allocations: 12 kB / 360.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.1388, allocations: 95.83 kB / 361 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.24e-05/0.1389, allocations: 15.94 kB / 361 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.1391, allocations: 27.84 kB / 361 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.811e-05/0.1392, allocations: 20 kB / 361.1 MB, free: 9.391 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.0002148/0.1394, allocations: 169.8 kB / 361.2 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005171/0.1399, allocations: 297.1 kB / 361.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007135/0.1406, allocations: 379.2 kB / 361.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.1407, allocations: 8 kB / 361.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.1407, allocations: 0 / 361.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1407, allocations: 0 / 361.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004988/0.1412, allocations: 337.2 kB / 362.2 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1412, allocations: 0 / 362.2 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/0.1418, allocations: 123.8 kB / 362.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-06/0.1418, allocations: 11.98 kB / 362.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.1418, allocations: 8 kB / 362.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1419, allocations: 0 / 362.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.1419, allocations: 0 / 362.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1429, allocations: 0.7223 MB / 363.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.784e-05/0.143, allocations: 108.8 kB / 363.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.565e-05/0.1431, allocations: 19.98 kB / 363.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.1434, allocations: 15.94 kB / 363.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.454e-05/0.1434, allocations: 12.11 kB / 363.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.1435, allocations: 12 kB / 363.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002612/0.1437, allocations: 243.1 kB / 363.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1437, allocations: 0 / 363.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004557/0.1442, allocations: 60 kB / 363.5 MB, free: 6.793 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.000165/0.1444, allocations: 122.3 kB / 363.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006792/0.1451, allocations: 329.6 kB / 364 MB, free: 6.348 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1451, allocations: 4.25 kB / 364 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.93e-05/0.1452, allocations: 27.92 kB / 364 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007888/0.1459, allocations: 224.8 kB / 364.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.1477, allocations: 0.7817 MB / 365 MB, free: 5.273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.1482, allocations: 0.8034 MB / 365.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.1483, allocations: 39.42 kB / 365.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1483, allocations: 0 / 365.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of Templates: time 0.007447/0.1558, allocations: 3.898 MB / 369.8 MB, free: 0.5078 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/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_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches