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.001411/0.001411, allocations: 109.4 kB / 16.92 MB, free: 6.145 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.001689/0.001689, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.587/1.587, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 55.48 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2084, allocations: 49.43 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00628/0.2148, allocations: 2.211 MB / 352.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2162, allocations: 0.5965 MB / 353 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.2164, allocations: 11.94 kB / 353 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.2167, allocations: 23.67 kB / 353 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003593/0.217, allocations: 71.36 kB / 353.1 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003678/0.2174, allocations: 78.22 kB / 353.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.2179, allocations: 279 kB / 353.4 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.2182, allocations: 56.97 kB / 353.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.2184, allocations: 115.4 kB / 353.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002578/0.2187, allocations: 147.2 kB / 353.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.34e-05/0.2187, allocations: 24 kB / 353.8 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.584e-05/0.2188, allocations: 24 kB / 353.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.2189, allocations: 67.67 kB / 353.8 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.2191, allocations: 123.1 kB / 354 MB, free: 492 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004017/0.2195, allocations: 251.3 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.2195, allocations: 0 / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.2195, allocations: 4 kB / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.2196, allocations: 0 / 354.2 MB, free: 236 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.001677/0.2212, allocations: 0.6152 MB / 354.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.626e-05/0.2213, allocations: 16.02 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.773e-05/0.2214, allocations: 46.75 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.395e-05/0.2215, allocations: 36.47 kB / 354.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/0.222, allocations: 316.4 kB / 355.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.2221, allocations: 20.2 kB / 355.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.312e-05/0.2221, allocations: 15.91 kB / 355.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008004/0.2229, allocations: 367.8 kB / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.223, allocations: 0 / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.223, allocations: 8 kB / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.223, allocations: 0 / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.2232, allocations: 87.95 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.2243, allocations: 0.5326 MB / 356.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007946/0.2251, allocations: 315.7 kB / 356.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.2253, allocations: 134.6 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.728e-05/0.2254, allocations: 12.58 kB / 356.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.2255, allocations: 42.56 kB / 356.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.154e-06/0.2255, allocations: 0 / 356.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002732/0.2282, allocations: 1.326 MB / 358.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.2284, allocations: 138.6 kB / 358.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003978/0.2288, allocations: 328.6 kB / 358.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.2288, allocations: 29.7 kB / 358.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2289, allocations: 145.1 kB / 358.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.76e-05/0.229, allocations: 51.56 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.498e-05/0.2291, allocations: 66.14 kB / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.2293, allocations: 346.8 kB / 359.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.2294, allocations: 72.83 kB / 359.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.2298, allocations: 314.8 kB / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005988/0.2304, allocations: 424.9 kB / 359.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2304, allocations: 0 / 359.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007906/0.2312, allocations: 409.3 kB / 360.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.2312, allocations: 8 kB / 360.4 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.2312, allocations: 8 kB / 360.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.281e-05/0.2313, allocations: 12 kB / 360.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.2316, allocations: 95.78 kB / 360.5 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.2316, allocations: 16.06 kB / 360.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.2318, allocations: 27.84 kB / 360.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.2318, allocations: 31.92 kB / 360.5 MB, free: 9.293 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.0001939/0.232, allocations: 181.9 kB / 360.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000482/0.2325, allocations: 293.1 kB / 361 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006821/0.2332, allocations: 375.2 kB / 361.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.2332, allocations: 4 kB / 361.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2332, allocations: 0 / 361.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/0.2333, allocations: 7.984 kB / 361.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005818/0.2338, allocations: 329.2 kB / 361.7 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2339, allocations: 4.188 kB / 361.7 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006382/0.2345, allocations: 123.8 kB / 361.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.2345, allocations: 4 kB / 361.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.035e-05/0.2346, allocations: 15.97 kB / 361.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.2346, allocations: 3.938 kB / 361.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.2346, allocations: 4 kB / 361.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.2359, allocations: 0.7184 MB / 362.6 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.236, allocations: 108.8 kB / 362.7 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.758e-05/0.2361, allocations: 19.92 kB / 362.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.2364, allocations: 12 kB / 362.7 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.317e-05/0.2364, allocations: 4 kB / 362.7 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.2365, allocations: 15.98 kB / 362.7 MB, free: 6.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004018/0.2369, allocations: 247 kB / 363 MB, free: 6.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2369, allocations: 4.062 kB / 363 MB, free: 6.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005191/0.2374, allocations: 64 kB / 363 MB, free: 6.684 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.001776/0.2392, allocations: 1.268 MB / 364.3 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008484/0.2401, allocations: 322.1 kB / 364.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.2401, allocations: 8 kB / 364.6 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.081e-05/0.2402, allocations: 31.98 kB / 364.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009257/0.2411, allocations: 216.3 kB / 364.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004118/0.2453, allocations: 2.196 MB / 367.1 MB, free: 2.445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/0.2458, allocations: 0.8112 MB / 367.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.2459, allocations: 39.27 kB / 367.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.2462, allocations: 115.4 kB / 368 MB, free: 1.457 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2462, allocations: 0 / 368 MB, free: 1.457 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2738/0.52, allocations: 6.802 MB / 374.8 MB, free: 25.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.793/10.31, allocations: 14.97 kB / 374.8 MB, free: 25.05 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