Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002328/0.002328, allocations: 211.3 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 43.94 kB / 377.7 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2337, allocations: 53.38 MB / 431.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00376/0.2374, allocations: 2.122 MB / 433.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.2386, allocations: 0.5887 MB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.2387, allocations: 0 / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.2389, allocations: 27.61 kB / 433.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.2391, allocations: 79.42 kB / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.2394, allocations: 79.77 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.2398, allocations: 271.1 kB / 434.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.2399, allocations: 56.84 kB / 434.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002982/0.2402, allocations: 123.4 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.2404, allocations: 127.3 kB / 434.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.2405, allocations: 27.94 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.211e-05/0.2405, allocations: 24 kB / 434.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.647e-05/0.2406, allocations: 63.69 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.2407, allocations: 111.2 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.241, allocations: 259.2 kB / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.241, allocations: 0 / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.241, allocations: 0 / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.2411, allocations: 3.938 kB / 435 MB, free: 2.648 MB / 334.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.001118/0.2422, allocations: 0.5475 MB / 435.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2422, allocations: 8.031 kB / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.197e-05/0.2423, allocations: 50.73 kB / 435.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.921e-05/0.2423, allocations: 36.7 kB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000432/0.2428, allocations: 262.7 kB / 435.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.2428, allocations: 20.22 kB / 435.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.2428, allocations: 15.98 kB / 436 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000678/0.2435, allocations: 373.8 kB / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2435, allocations: 0 / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.2435, allocations: 8 kB / 436.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.2435, allocations: 8 kB / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.2438, allocations: 95.88 kB / 436.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007395/0.2445, allocations: 452.8 kB / 436.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007226/0.2453, allocations: 307.6 kB / 437.2 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.2455, allocations: 140.9 kB / 437.3 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.2455, allocations: 4 kB / 437.3 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.2456, allocations: 34.56 kB / 437.3 MB, free: 152 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.423e-06/0.2456, allocations: 0 / 437.3 MB, free: 152 kB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.002416/0.248, allocations: 1.156 MB / 438.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.2481, allocations: 138.7 kB / 438.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.2485, allocations: 324.6 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.2485, allocations: 33.69 kB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.2487, allocations: 149 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.938e-05/0.2487, allocations: 52.33 kB / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.971e-05/0.2488, allocations: 70.12 kB / 439.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.249, allocations: 346.8 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.2491, allocations: 64.84 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003563/0.2495, allocations: 304.7 kB / 440 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/0.25, allocations: 395.3 kB / 440.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.25, allocations: 11.94 kB / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006665/0.2507, allocations: 400.8 kB / 440.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.2507, allocations: 8 kB / 440.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.2507, allocations: 15.98 kB / 440.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.879e-05/0.2508, allocations: 12.78 kB / 440.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/0.2511, allocations: 91.84 kB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/0.2511, allocations: 19.92 kB / 440.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.2513, allocations: 19.95 kB / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.2513, allocations: 24 kB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (49): * Single equations (assignments): 49 * 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.0002534/0.2516, allocations: 169.5 kB / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005206/0.2521, allocations: 293.9 kB / 441.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007586/0.2529, allocations: 368.5 kB / 441.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.2529, allocations: 4 kB / 441.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.2529, allocations: 0 / 441.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.2529, allocations: 11.98 kB / 441.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.2533, allocations: 232.6 kB / 442 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.2533, allocations: 0 / 442 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005831/0.2539, allocations: 123.8 kB / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.2539, allocations: 0 / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.2539, allocations: 11.98 kB / 442.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.2539, allocations: 4 kB / 442.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2539, allocations: 0 / 442.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.255, allocations: 0.7068 MB / 442.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.97e-05/0.2551, allocations: 35.78 kB / 442.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.668e-05/0.2551, allocations: 16 kB / 442.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.2554, allocations: 11.98 kB / 442.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.2554, allocations: 4 kB / 442.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.2555, allocations: 15.98 kB / 442.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002815/0.2557, allocations: 243.1 kB / 443.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2557, allocations: 0 / 443.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.2562, allocations: 60 kB / 443.2 MB, free: 9.855 MB / 350.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 (43): * Single equations (assignments): 43 * 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.001539/0.2577, allocations: 1.26 MB / 444.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006136/0.2583, allocations: 278.1 kB / 444.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2583, allocations: 8 kB / 444.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.519e-05/0.2584, allocations: 27.98 kB / 444.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008048/0.2592, allocations: 188.7 kB / 445 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005009/0.2642, allocations: 3.766 MB / 448.7 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.2644, allocations: 197.6 kB / 448.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.2645, allocations: 39.27 kB / 449 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.2647, allocations: 107.4 kB / 449.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2647, allocations: 0 / 449.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03883/0.3036, allocations: 7.796 MB / 456.9 MB, free: 12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.15, allocations: 19.08 kB / 456.9 MB, free: 11.99 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --stepSize=0.0545355 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.623008119408041]