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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001924/0.001924, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00312/0.00312, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 63.91 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2765, allocations: 53.41 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003552/0.2801, allocations: 2.252 MB / 433.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2812, allocations: 0.6237 MB / 434.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.2813, allocations: 4 kB / 434.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.2815, allocations: 27.61 kB / 434.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.2817, allocations: 75.42 kB / 434.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.282, allocations: 83.7 kB / 434.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003306/0.2823, allocations: 271.1 kB / 434.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.2825, allocations: 60.91 kB / 434.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.2827, allocations: 119.4 kB / 434.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.2829, allocations: 155.2 kB / 434.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.283, allocations: 24 kB / 434.9 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.673e-05/0.283, allocations: 20 kB / 434.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.056e-05/0.2831, allocations: 67.62 kB / 434.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.2832, allocations: 131.1 kB / 435.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003035/0.2835, allocations: 259 kB / 435.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/0.2835, allocations: 4 kB / 435.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2835, allocations: 0 / 435.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2835, allocations: 0 / 435.3 MB, free: 2.531 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.2846, allocations: 0.5476 MB / 435.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2847, allocations: 8.031 kB / 435.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.483e-05/0.2847, allocations: 46.73 kB / 435.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.923e-05/0.2848, allocations: 36.7 kB / 436 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.2852, allocations: 266.7 kB / 436.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2852, allocations: 12.22 kB / 436.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.2852, allocations: 20 kB / 436.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006716/0.2859, allocations: 377.5 kB / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2859, allocations: 0 / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.2859, allocations: 7.984 kB / 436.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.286, allocations: 4 kB / 436.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.2862, allocations: 95.88 kB / 436.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007146/0.2869, allocations: 0.4928 MB / 437.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006961/0.2876, allocations: 307.2 kB / 437.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.2878, allocations: 130.5 kB / 437.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.2878, allocations: 15.92 kB / 437.7 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.2879, allocations: 42.59 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.473e-06/0.2879, allocations: 3.938 kB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002276/0.2902, allocations: 1.187 MB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.2903, allocations: 131.4 kB / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.2907, allocations: 328.6 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.2907, allocations: 29.7 kB / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.2908, allocations: 149.1 kB / 439.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/0.2909, allocations: 51.67 kB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.511e-05/0.2909, allocations: 70.12 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.2911, allocations: 350.8 kB / 440 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.2912, allocations: 64.78 kB / 440 MB, free: 13.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.2916, allocations: 322.7 kB / 440.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.2921, allocations: 420.9 kB / 440.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.2921, allocations: 4 kB / 440.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006311/0.2927, allocations: 409.4 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2927, allocations: 8 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.2927, allocations: 8 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.2927, allocations: 12 kB / 441.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/0.293, allocations: 99.77 kB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.293, allocations: 15.94 kB / 441.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.2932, allocations: 27.89 kB / 441.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.2933, allocations: 24.27 kB / 441.4 MB, free: 11.96 MB / 350.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.0001782/0.2935, allocations: 169.6 kB / 441.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004937/0.2939, allocations: 304.6 kB / 441.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006606/0.2946, allocations: 383.4 kB / 442.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2946, allocations: 4 kB / 442.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2946, allocations: 0 / 442.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2946, allocations: 0 / 442.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.295, allocations: 300.4 kB / 442.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.295, allocations: 4 kB / 442.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005587/0.2956, allocations: 127.9 kB / 442.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.2956, allocations: 4 kB / 442.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.2956, allocations: 12 kB / 442.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2956, allocations: 3.938 kB / 442.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2956, allocations: 4 kB / 442.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.2966, allocations: 0.7186 MB / 443.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.014e-05/0.2967, allocations: 43.72 kB / 443.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.2968, allocations: 15.98 kB / 443.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.297, allocations: 8 kB / 443.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.297, allocations: 7.984 kB / 443.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.2971, allocations: 12 kB / 443.5 MB, free: 9.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.2973, allocations: 243.1 kB / 443.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2973, allocations: 4.062 kB / 443.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004284/0.2977, allocations: 60 kB / 443.8 MB, free: 9.48 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 (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.001316/0.2991, allocations: 1.279 MB / 445 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005197/0.2996, allocations: 277.7 kB / 445.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.2996, allocations: 4.188 kB / 445.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.093e-05/0.2997, allocations: 31.92 kB / 445.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007389/0.3004, allocations: 199.5 kB / 445.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/0.3051, allocations: 3.823 MB / 449.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.3055, allocations: 0.8035 MB / 450.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.357e-05/0.3056, allocations: 39.27 kB / 450.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.3058, allocations: 111.4 kB / 450.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3058, allocations: 7.938 kB / 450.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04106/0.3469, allocations: 7.593 MB / 457.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.72, allocations: 7.156 kB / 457.9 MB, free: 11.06 MB / 366.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0545355 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 14.264397233026102]