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.001299/0.001299, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001384/0.001384, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.432/1.432, allocations: 230.5 MB / 258.2 MB, free: 7.801 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 63.89 kB / 378.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2516, allocations: 53.4 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003441/0.255, allocations: 2.129 MB / 434 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.2561, allocations: 0.5848 MB / 434.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.2562, allocations: 4 kB / 434.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.2563, allocations: 27.61 kB / 434.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.2566, allocations: 79.41 kB / 434.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.2569, allocations: 75.22 kB / 434.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003298/0.2572, allocations: 279 kB / 435.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2574, allocations: 63.02 kB / 435.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.2576, allocations: 123.3 kB / 435.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.2578, allocations: 147.3 kB / 435.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.2578, allocations: 20 kB / 435.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.995e-05/0.2579, allocations: 24 kB / 435.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.508e-05/0.2579, allocations: 59.7 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.2581, allocations: 111.2 kB / 435.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.2584, allocations: 266.6 kB / 435.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2584, allocations: 0 / 435.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2584, allocations: 0 / 435.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.2584, allocations: 0 / 435.9 MB, free: 2.492 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.001082/0.2594, allocations: 0.5437 MB / 436.4 MB, free: 1.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.2595, allocations: 19.97 kB / 436.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.895e-05/0.2595, allocations: 4.469 kB / 436.4 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.863e-05/0.2596, allocations: 50.73 kB / 436.5 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.358e-05/0.2596, allocations: 36.7 kB / 436.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.26, allocations: 262.5 kB / 436.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.26, allocations: 12.28 kB / 436.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.2601, allocations: 12 kB / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006585/0.2607, allocations: 382.1 kB / 437.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.2607, allocations: 0 / 437.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.2607, allocations: 4 kB / 437.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2607, allocations: 4 kB / 437.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.261, allocations: 91.89 kB / 437.3 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006659/0.2616, allocations: 464.7 kB / 437.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006942/0.2623, allocations: 306.8 kB / 438 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.2625, allocations: 134 kB / 438.2 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.2626, allocations: 4 kB / 438.2 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.873e-05/0.2626, allocations: 42.55 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.2626, allocations: 0 / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.002308/0.2649, allocations: 1.145 MB / 439.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.265, allocations: 138.8 kB / 439.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003765/0.2654, allocations: 324.6 kB / 439.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.2655, allocations: 33.7 kB / 439.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.2656, allocations: 156.9 kB / 440 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.426e-05/0.2656, allocations: 47.72 kB / 440 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.2657, allocations: 66.27 kB / 440.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.2659, allocations: 347.5 kB / 440.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.2661, allocations: 76.83 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003166/0.2664, allocations: 300 kB / 440.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004814/0.2669, allocations: 395.2 kB / 441.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.2669, allocations: 3.938 kB / 441.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006401/0.2675, allocations: 409.6 kB / 441.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2675, allocations: 15.94 kB / 441.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.2675, allocations: 8.078 kB / 441.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.2676, allocations: 8 kB / 441.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.2678, allocations: 95.83 kB / 441.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.2679, allocations: 19.92 kB / 441.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.2681, allocations: 19.95 kB / 441.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/0.2681, allocations: 20 kB / 441.8 MB, free: 12.07 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.0001892/0.2683, allocations: 177.5 kB / 441.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004882/0.2688, allocations: 293.9 kB / 442.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006804/0.2695, allocations: 368.5 kB / 442.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.2695, allocations: 4 kB / 442.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.2695, allocations: 4 kB / 442.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2695, allocations: 3.984 kB / 442.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003662/0.2699, allocations: 232.6 kB / 442.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2699, allocations: 0 / 442.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005855/0.2704, allocations: 123.8 kB / 443 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.106e-06/0.2705, allocations: 8 kB / 443 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.2705, allocations: 4 kB / 443 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2705, allocations: 4 kB / 443 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2705, allocations: 3.938 kB / 443 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.2715, allocations: 0.6951 MB / 443.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.012e-05/0.2716, allocations: 39.78 kB / 443.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.2717, allocations: 15.98 kB / 443.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.2719, allocations: 8 kB / 443.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.128e-05/0.272, allocations: 7.984 kB / 443.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.272, allocations: 20.12 kB / 443.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002819/0.2723, allocations: 243.1 kB / 444 MB, free: 9.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2723, allocations: 0 / 444 MB, free: 9.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004435/0.2727, allocations: 60 kB / 444.1 MB, free: 9.695 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.001268/0.274, allocations: 1.257 MB / 445.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005364/0.2745, allocations: 279.8 kB / 445.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2745, allocations: 3.938 kB / 445.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.161e-05/0.2746, allocations: 33.55 kB / 445.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007687/0.2754, allocations: 184.5 kB / 445.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.2803, allocations: 3.77 MB / 449.6 MB, free: 3.844 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.2805, allocations: 201.6 kB / 449.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.497e-05/0.2805, allocations: 31.28 kB / 449.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.2807, allocations: 119.4 kB / 449.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2807, allocations: 0 / 449.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.3111, allocations: 7.525 MB / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.25, allocations: 3.266 kB / 457.4 MB, free: 12.11 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] "" Variables in the reference:time,filter.x[1],filter.x[2],filter.x[3],invMixingUnit.c,invMixingUnit.T,mixingUnit.c,mixingUnit.T Variables in the result:T0,T_c_start,T_start,a1,a1_inv,a21,a21_inv,a22,a22_inv,add.k1,add.k2,add.u1,add.u2,add.y,b,b_inv,c0,c_high_start,c_start,der(der(filter.x[3])),der(der(invMixingUnit.c)),der(der(inverseBlockConstraints.u1)),der(der(inverseBlockConstraints.u2)),der(filter.x[1]),der(filter.x[2]),der(filter.x[3]),der(invMixingUnit.T),der(invMixingUnit.c),der(invMixingUnit.gamma),der(inverseBlockConstraints.u1),der(inverseBlockConstraints.u2),der(mixingUnit.T),der(mixingUnit.c),eps,feedback.u1,feedback.u2,feedback.y,filter.f,filter.n,filter.normalized,filter.u,filter.x[1],filter.x[2],filter.x[3],filter.y,freq,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,invMixingUnit.T,invMixingUnit.T0,invMixingUnit.T_c,invMixingUnit.a1,invMixingUnit.a21,invMixingUnit.a22,invMixingUnit.b,invMixingUnit.c,invMixingUnit.c0,invMixingUnit.eps,invMixingUnit.gamma,invMixingUnit.k0,inverseBlockConstraints.u1,inverseBlockConstraints.u2,inverseBlockConstraints.y1,inverseBlockConstraints.y2,k0,k0_inv,mixingUnit.T,mixingUnit.T0,mixingUnit.T_c,mixingUnit.a1,mixingUnit.a21,mixingUnit.a22,mixingUnit.b,mixingUnit.c,mixingUnit.c0,mixingUnit.eps,mixingUnit.gamma,mixingUnit.k0,periodicClock1.period,periodicClock1.useSolver,der(previous(filter.x[1])),der(previous(invMixingUnit.T)),der(previous(invMixingUnit.c)),previous(filter.x[1]),previous(invMixingUnit.T),previous(invMixingUnit.c),pro,sample1.u,sample1.y,sample2.u,sample2.y,step.height,step.offset,step.startTime,step.y,time,u0,x10,x20 [Calling sys.exit(0), Time elapsed: 14.961878873058595]