Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001511/0.001511, allocations: 191.6 kB / 17.38 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000776/0.0007759, allocations: 108.5 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002745, allocations: 4 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2925, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.001797/0.2943, allocations: 1.854 MB / 410 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007711/0.2951, allocations: 0.5672 MB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.2952, allocations: 8.469 kB / 410.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.2953, allocations: 13.73 kB / 410.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.2956, allocations: 55.55 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.2958, allocations: 55.94 kB / 410.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002108/0.296, allocations: 251.6 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.2961, allocations: 61.83 kB / 411 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.2963, allocations: 103.4 kB / 411.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.2965, allocations: 119.4 kB / 411.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.2965, allocations: 8.531 kB / 411.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.06e-05/0.2965, allocations: 13.03 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.72e-05/0.2966, allocations: 47.7 kB / 411.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.264e-05/0.2967, allocations: 136.9 kB / 411.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.2969, allocations: 188.7 kB / 411.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2969, allocations: 0 / 411.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2969, allocations: 0 / 411.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.86e-06/0.2969, allocations: 0 / 411.6 MB, free: 24.24 MB / 298.7 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.0008873/0.2978, allocations: 0.5726 MB / 412.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.2978, allocations: 11.97 kB / 412.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.754e-05/0.2979, allocations: 46.73 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.457e-05/0.2979, allocations: 32.56 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.2983, allocations: 324.3 kB / 412.6 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.2983, allocations: 12.22 kB / 412.6 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.2984, allocations: 23.91 kB / 412.6 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005242/0.2989, allocations: 365.6 kB / 413 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2989, allocations: 0 / 413 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.2989, allocations: 8 kB / 413 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.2989, allocations: 4 kB / 413 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.2991, allocations: 91.88 kB / 413.1 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005124/0.2996, allocations: 0.5326 MB / 413.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005626/0.3002, allocations: 320.9 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.3004, allocations: 133.9 kB / 414 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.3004, allocations: 8 kB / 414 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.664e-05/0.3005, allocations: 46.48 kB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.3005, allocations: 0 / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001881/0.3024, allocations: 1.316 MB / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.3024, allocations: 134.7 kB / 415.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.3027, allocations: 328.6 kB / 415.9 MB, free: 19.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.3027, allocations: 33.7 kB / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.3028, allocations: 149.2 kB / 416 MB, free: 19.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.3028, allocations: 51.52 kB / 416.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.058e-05/0.3029, allocations: 4.656 kB / 416.1 MB, free: 19.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.109e-05/0.3029, allocations: 346.8 kB / 416.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.303, allocations: 72.83 kB / 416.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.3032, allocations: 314.8 kB / 416.8 MB, free: 18.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/0.3035, allocations: 428.8 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.3036, allocations: 0 / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004684/0.304, allocations: 412.6 kB / 417.6 MB, free: 17.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.3041, allocations: 8 kB / 417.6 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3041, allocations: 16.83 kB / 417.7 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.3041, allocations: 11.98 kB / 417.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.3043, allocations: 99.84 kB / 417.8 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.3043, allocations: 19.92 kB / 417.8 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.3045, allocations: 27.78 kB / 417.8 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.3046, allocations: 24 kB / 417.8 MB, free: 17.38 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.3047, allocations: 173.5 kB / 418 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003602/0.3051, allocations: 293.3 kB / 418.3 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005054/0.3056, allocations: 375.5 kB / 418.7 MB, free: 16.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3056, allocations: 4 kB / 418.7 MB, free: 16.53 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3056, allocations: 4 kB / 418.7 MB, free: 16.53 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3056, allocations: 3.984 kB / 418.7 MB, free: 16.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.3059, allocations: 329.2 kB / 419 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3059, allocations: 4 kB / 419 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005196/0.3064, allocations: 123.8 kB / 419.1 MB, free: 16.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3064, allocations: 4 kB / 419.1 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.3065, allocations: 12 kB / 419.1 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3065, allocations: 3.984 kB / 419.1 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3065, allocations: 0 / 419.1 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007564/0.3072, allocations: 0.7184 MB / 419.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.545e-05/0.3073, allocations: 116.7 kB / 420 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.597e-05/0.3074, allocations: 12 kB / 420 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.3076, allocations: 11.98 kB / 420 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.384e-05/0.3076, allocations: 8 kB / 420 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.3077, allocations: 11.98 kB / 420 MB, free: 15.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001787/0.3078, allocations: 243.1 kB / 420.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3079, allocations: 0 / 420.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003784/0.3082, allocations: 60 kB / 420.3 MB, free: 14.8 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000906/0.3092, allocations: 1.28 MB / 421.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.3096, allocations: 301.9 kB / 421.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3096, allocations: 4.062 kB / 421.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.661e-05/0.3096, allocations: 23.94 kB / 421.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006731/0.3103, allocations: 218.8 kB / 422.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.3128, allocations: 2.324 MB / 424.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.313, allocations: 0.8151 MB / 425.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.3132, allocations: 123.4 kB / 425.4 MB, free: 9.492 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3132, allocations: 0 / 425.4 MB, free: 9.492 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.76/3.073, allocations: 4.636 MB / 430 MB, free: 4.852 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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(filter.y)),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(filter.y),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.alpha,filter.f,filter.n,filter.normalized,filter.u,filter.w,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,invMixingUnit.tau0,invMixingUnit.wa11,invMixingUnit.wa12,invMixingUnit.wa13,invMixingUnit.wa21,invMixingUnit.wa22,invMixingUnit.wa23,invMixingUnit.wb,invMixingUnit.weps,invMixingUnit.wk0,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,mixingUnit.tau0,mixingUnit.wa11,mixingUnit.wa12,mixingUnit.wa13,mixingUnit.wa21,mixingUnit.wa22,mixingUnit.wa23,mixingUnit.wb,mixingUnit.weps,mixingUnit.wk0,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