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.001251/0.001251, allocations: 108.2 kB / 17.06 MB, free: 5.992 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.001132/0.001132, allocations: 196 kB / 18 MB, free: 5.082 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.217/1.217, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008473/0.0008473, allocations: 48.03 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.262, allocations: 49.43 MB / 400.2 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003871/0.2659, allocations: 2.209 MB / 402.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2673, allocations: 0.5964 MB / 403 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.2674, allocations: 0 / 403 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.2676, allocations: 23.67 kB / 403.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003221/0.2679, allocations: 75.36 kB / 403.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002882/0.2682, allocations: 83.83 kB / 403.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.2686, allocations: 275 kB / 403.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.2688, allocations: 80.55 kB / 403.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.2689, allocations: 107.4 kB / 403.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.2692, allocations: 151.2 kB / 403.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.09e-05/0.2692, allocations: 24 kB / 403.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.771e-05/0.2693, allocations: 24 kB / 403.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.2694, allocations: 59.7 kB / 403.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.2695, allocations: 127.1 kB / 404 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.2698, allocations: 264.5 kB / 404.3 MB, free: 4.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2698, allocations: 0 / 404.3 MB, free: 4.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2698, allocations: 4 kB / 404.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2698, allocations: 0 / 404.3 MB, free: 4.867 MB / 318.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.001135/0.271, allocations: 0.6114 MB / 404.9 MB, free: 4.207 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.271, allocations: 8.031 kB / 404.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.532e-05/0.2711, allocations: 50.73 kB / 405 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.581e-05/0.2712, allocations: 28.56 kB / 405 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.2716, allocations: 316.3 kB / 405.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.2716, allocations: 16.22 kB / 405.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.2716, allocations: 16 kB / 405.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006476/0.2723, allocations: 374.6 kB / 405.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2723, allocations: 7.938 kB / 405.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.2723, allocations: 4 kB / 405.7 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.2724, allocations: 4 kB / 405.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.2725, allocations: 83.95 kB / 405.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007596/0.2733, allocations: 0.5249 MB / 406.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006705/0.274, allocations: 311.8 kB / 406.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.2742, allocations: 144.3 kB / 406.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.2743, allocations: 7.859 kB / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.2743, allocations: 30.56 kB / 406.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.333e-06/0.2743, allocations: 0.6562 kB / 406.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002374/0.2767, allocations: 1.342 MB / 408.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.2768, allocations: 131.5 kB / 408.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.2772, allocations: 336.6 kB / 408.6 MB, free: 224 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.349e-05/0.2772, allocations: 33.64 kB / 408.6 MB, free: 184 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-05/0.2773, allocations: 145 kB / 408.8 MB, free: 36 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.902e-05/0.2774, allocations: 51.64 kB / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.2775, allocations: 70.12 kB / 408.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.2777, allocations: 346.8 kB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.2778, allocations: 72.83 kB / 409.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.2781, allocations: 318.8 kB / 409.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/0.2786, allocations: 424.8 kB / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2786, allocations: 0 / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006049/0.2792, allocations: 412.7 kB / 410.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.2792, allocations: 8 kB / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.2792, allocations: 8 kB / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.2793, allocations: 12.75 kB / 410.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.2795, allocations: 99.83 kB / 410.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/0.2796, allocations: 15.94 kB / 410.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.2798, allocations: 19.98 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.2798, allocations: 24 kB / 410.6 MB, free: 13.92 MB / 334.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.0001736/0.28, allocations: 177.7 kB / 410.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004727/0.2805, allocations: 293.3 kB / 411.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007159/0.2812, allocations: 383.5 kB / 411.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2812, allocations: 8.188 kB / 411.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.2812, allocations: 0 / 411.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.2813, allocations: 11.97 kB / 411.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003969/0.2817, allocations: 321.3 kB / 411.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2817, allocations: 0 / 411.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.2822, allocations: 127.8 kB / 411.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2823, allocations: 0 / 411.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.2823, allocations: 8 kB / 411.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.2823, allocations: 4 kB / 411.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2823, allocations: 0 / 411.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009982/0.2833, allocations: 0.7223 MB / 412.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.171e-05/0.2834, allocations: 112.7 kB / 412.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.04e-05/0.2835, allocations: 12 kB / 412.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.2837, allocations: 15.98 kB / 412.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.075e-05/0.2838, allocations: 12 kB / 412.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.2838, allocations: 12 kB / 412.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.2841, allocations: 247 kB / 413.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2841, allocations: 0 / 413.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004427/0.2845, allocations: 64 kB / 413.1 MB, free: 11.31 MB / 334.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.001289/0.2858, allocations: 1.271 MB / 414.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005288/0.2864, allocations: 293.4 kB / 414.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2864, allocations: 0 / 414.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.952e-05/0.2865, allocations: 31.92 kB / 414.7 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000725/0.2872, allocations: 212.4 kB / 414.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.2917, allocations: 3.831 MB / 418.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.2921, allocations: 0.8073 MB / 419.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.291e-05/0.2922, allocations: 31.28 kB / 419.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.2924, allocations: 119.4 kB / 419.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2924, allocations: 0 / 419.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.709/3.001, allocations: 7.301 MB / 427 MB, free: 13.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.02/22.02, allocations: 6.516 kB / 427 MB, free: 13.16 MB / 350.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