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: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001923/0.001923, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.631/1.631, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004431/0.000443, allocations: 8 kB / 301.5 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1461, allocations: 50.41 MB / 351.9 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002847/0.149, allocations: 1.905 MB / 353.8 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.1504, allocations: 0.581 MB / 354.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002711/0.1507, allocations: 0 / 354.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.1509, allocations: 15.8 kB / 354.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00041/0.1513, allocations: 63.61 kB / 354.5 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.1517, allocations: 63.88 kB / 354.6 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004072/0.1521, allocations: 263 kB / 354.8 MB, free: 480 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.1523, allocations: 60.94 kB / 354.9 MB, free: 416 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.1525, allocations: 91.45 kB / 355 MB, free: 324 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.1527, allocations: 135.2 kB / 355.1 MB, free: 188 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.174e-05/0.1528, allocations: 12 kB / 355.1 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.917e-05/0.1529, allocations: 12 kB / 355.1 MB, free: 164 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.763e-05/0.1529, allocations: 55.69 kB / 355.2 MB, free: 108 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.1531, allocations: 140.8 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002685/0.1534, allocations: 231.2 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1534, allocations: 0 / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1534, allocations: 0 / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1534, allocations: 0 / 355.5 MB, free: 15.73 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.001187/0.1546, allocations: 0.5726 MB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1547, allocations: 8.031 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.539e-05/0.1548, allocations: 50.67 kB / 356.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.009e-05/0.1549, allocations: 40.47 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004622/0.1553, allocations: 324.3 kB / 356.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.1553, allocations: 12.22 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.1554, allocations: 16 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/0.1561, allocations: 374.8 kB / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1561, allocations: 3.984 kB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.1562, allocations: 8 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.1562, allocations: 0 / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.1564, allocations: 98.73 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007768/0.1572, allocations: 0.5287 MB / 357.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007036/0.1579, allocations: 315.6 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.1582, allocations: 139.3 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.1582, allocations: 8 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.1583, allocations: 38.56 kB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.1583, allocations: 0 / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002625/0.1609, allocations: 1.329 MB / 359.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.161, allocations: 138.6 kB / 359.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.1614, allocations: 328.7 kB / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.1615, allocations: 41.64 kB / 359.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1616, allocations: 145.1 kB / 360 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-05/0.1617, allocations: 47.53 kB / 360.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-05/0.1617, allocations: 37.7 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1619, allocations: 346.8 kB / 360.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.1621, allocations: 72.83 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.1624, allocations: 318.8 kB / 360.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005283/0.1629, allocations: 424.9 kB / 361.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1629, allocations: 0 / 361.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006724/0.1636, allocations: 416.5 kB / 361.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.1637, allocations: 12.94 kB / 361.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.1637, allocations: 8 kB / 361.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.1637, allocations: 16 kB / 361.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.164, allocations: 99.83 kB / 361.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.164, allocations: 15.94 kB / 361.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.1643, allocations: 27.83 kB / 361.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.1643, allocations: 24 kB / 361.8 MB, free: 8.824 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.00019/0.1645, allocations: 170.7 kB / 362 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004701/0.165, allocations: 297.1 kB / 362.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006415/0.1656, allocations: 383.4 kB / 362.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.1657, allocations: 4 kB / 362.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1657, allocations: 4 kB / 362.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.1657, allocations: 3.984 kB / 362.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004146/0.1661, allocations: 329.3 kB / 363 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.1661, allocations: 4 kB / 363 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005341/0.1667, allocations: 127.8 kB / 363.1 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/0.1667, allocations: 8 kB / 363.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.1667, allocations: 8 kB / 363.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1667, allocations: 0 / 363.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1667, allocations: 0 / 363.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1678, allocations: 0.7263 MB / 363.9 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.1679, allocations: 116.6 kB / 364 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/0.1679, allocations: 12 kB / 364 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.1682, allocations: 15.98 kB / 364 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.14e-05/0.1682, allocations: 7.938 kB / 364 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.1683, allocations: 12.19 kB / 364 MB, free: 6.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002689/0.1685, allocations: 247 kB / 364.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1686, allocations: 0 / 364.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004561/0.169, allocations: 68.06 kB / 364.3 MB, free: 6.211 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.001372/0.1704, allocations: 1.272 MB / 365.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005568/0.171, allocations: 302 kB / 365.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.171, allocations: 0 / 365.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.391e-05/0.1711, allocations: 31.98 kB / 365.9 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007789/0.1719, allocations: 212.4 kB / 366.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.1757, allocations: 2.347 MB / 368.5 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.1761, allocations: 0.8073 MB / 369.3 MB, free: 1.016 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.1762, allocations: 35.28 kB / 369.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.1764, allocations: 115.4 kB / 369.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of SimCode: time 1.143e-06/0.1764, allocations: 0 / 369.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.258/0.4344, allocations: 6.328 MB / 375.8 MB, free: 22.83 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/0.4347, allocations: 208.9 kB / 376 MB, free: 22.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.226/2.661, allocations: 0 / 376 MB, free: 22.58 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > 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