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: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0015/0.0015, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 63.7 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1154, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004129/0.1195, allocations: 2.216 MB / 359.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.121, allocations: 0.6238 MB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002732/0.1213, allocations: 0 / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.1216, allocations: 27.61 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.122, allocations: 71.42 kB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.1224, allocations: 71.83 kB / 360.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.1228, allocations: 271.1 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.123, allocations: 72.92 kB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002477/0.1232, allocations: 127.4 kB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.1235, allocations: 143.2 kB / 361.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.1235, allocations: 20 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.533e-05/0.1236, allocations: 24 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.686e-05/0.1237, allocations: 63.69 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1238, allocations: 127.1 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.1241, allocations: 255.2 kB / 361.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1241, allocations: 0 / 361.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1241, allocations: 4 kB / 361.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.1241, allocations: 4 kB / 361.7 MB, free: 9.918 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.001258/0.1254, allocations: 0.6152 MB / 362.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.1254, allocations: 16.02 kB / 362.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.057e-05/0.1255, allocations: 42.75 kB / 362.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.954e-05/0.1256, allocations: 36.47 kB / 362.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.126, allocations: 320.3 kB / 362.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.126, allocations: 16.22 kB / 362.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.1261, allocations: 12 kB / 362.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006829/0.1268, allocations: 373.6 kB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.1268, allocations: 3.984 kB / 363.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.1268, allocations: 8 kB / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.1268, allocations: 4 kB / 363.1 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.127, allocations: 91.89 kB / 363.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007565/0.1278, allocations: 0.5325 MB / 363.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007018/0.1285, allocations: 315.1 kB / 364 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/0.1288, allocations: 142.2 kB / 364.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.1288, allocations: 4 kB / 364.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.706e-05/0.1289, allocations: 38.56 kB / 364.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.934e-06/0.1289, allocations: 0 / 364.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002436/0.1313, allocations: 1.329 MB / 365.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.1314, allocations: 134.7 kB / 365.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003633/0.1318, allocations: 332.7 kB / 366 MB, free: 5.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.1319, allocations: 29.7 kB / 366 MB, free: 5.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.132, allocations: 145.1 kB / 366.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.347e-05/0.132, allocations: 47.53 kB / 366.2 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.168e-05/0.1321, allocations: 66.14 kB / 366.3 MB, free: 4.953 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1322, allocations: 346.8 kB / 366.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.1324, allocations: 72.83 kB / 366.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.1327, allocations: 318.7 kB / 367 MB, free: 4.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.1332, allocations: 432.8 kB / 367.4 MB, free: 3.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1332, allocations: 4 kB / 367.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000651/0.1339, allocations: 408.8 kB / 367.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1339, allocations: 8 kB / 367.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1339, allocations: 8 kB / 367.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.1339, allocations: 12 kB / 367.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.1342, allocations: 92.5 kB / 367.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.313e-05/0.1342, allocations: 23.86 kB / 368 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.1345, allocations: 27.84 kB / 368 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.1345, allocations: 24 kB / 368 MB, free: 2.957 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.0001716/0.1347, allocations: 174.7 kB / 368.2 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/0.1352, allocations: 285.7 kB / 368.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000643/0.1358, allocations: 379.2 kB / 368.8 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.1358, allocations: 12 kB / 368.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1359, allocations: 3.984 kB / 368.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.1359, allocations: 4 kB / 368.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003877/0.1363, allocations: 321.3 kB / 369.2 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.1363, allocations: 7.875 kB / 369.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005975/0.1369, allocations: 123.8 kB / 369.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.1369, allocations: 4 kB / 369.3 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1369, allocations: 11.98 kB / 369.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.137, allocations: 0 / 369.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.137, allocations: 4 kB / 369.3 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009995/0.138, allocations: 0.7148 MB / 370 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.916e-05/0.1381, allocations: 112.7 kB / 370.1 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.1381, allocations: 19.92 kB / 370.2 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002575/0.1384, allocations: 12 kB / 370.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.1385, allocations: 8.25 kB / 370.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.1385, allocations: 15.98 kB / 370.2 MB, free: 0.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002683/0.1388, allocations: 243.1 kB / 370.4 MB, free: 444 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1388, allocations: 0 / 370.4 MB, free: 444 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.1393, allocations: 64 kB / 370.5 MB, free: 380 kB / 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.1887/0.3279, allocations: 1.262 MB / 371.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007248/0.3287, allocations: 337.9 kB / 372.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3287, allocations: 3.781 kB / 372.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.622e-05/0.3288, allocations: 30.08 kB / 372.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007554/0.3295, allocations: 209.9 kB / 372.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003143/0.3327, allocations: 2.179 MB / 374.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.3329, allocations: 0.8088 MB / 375.3 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.3331, allocations: 35.25 kB / 375.3 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.3332, allocations: 116.1 kB / 375.5 MB, free: 17.69 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3332, allocations: 0 / 375.5 MB, free: 17.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.3585, allocations: 6.803 MB / 382.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.139/8.497, allocations: 17.7 kB / 382.3 MB, free: 16.62 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches