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.001373/0.001373, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002089/0.002089, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.508/1.508, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.001809/0.001809, allocations: 63.91 kB / 378.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.314, allocations: 53.4 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003779/0.3178, allocations: 2.252 MB / 434.2 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.3191, allocations: 0.6316 MB / 434.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.3192, allocations: 4 kB / 434.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.3194, allocations: 27.61 kB / 434.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002756/0.3196, allocations: 71.41 kB / 435 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.3199, allocations: 75.84 kB / 435 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.3202, allocations: 275 kB / 435.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.3204, allocations: 60.91 kB / 435.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.3206, allocations: 127.3 kB / 435.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.3208, allocations: 147.2 kB / 435.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.74e-05/0.3208, allocations: 20 kB / 435.6 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.814e-05/0.3209, allocations: 24 kB / 435.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.782e-05/0.321, allocations: 67.62 kB / 435.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.3211, allocations: 127.1 kB / 435.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.3214, allocations: 263.5 kB / 436.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3214, allocations: 0 / 436.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3214, allocations: 0 / 436.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.3214, allocations: 0 / 436.1 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.001106/0.3225, allocations: 0.5476 MB / 436.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.3226, allocations: 12.03 kB / 436.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.037e-05/0.3226, allocations: 8.469 kB / 436.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.203e-05/0.3226, allocations: 46.73 kB / 436.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.3227, allocations: 36.7 kB / 436.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.3231, allocations: 266.5 kB / 437 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.3231, allocations: 8.281 kB / 437 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.3232, allocations: 12 kB / 437 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.3238, allocations: 378.1 kB / 437.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.3238, allocations: 3.984 kB / 437.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.3239, allocations: 12 kB / 437.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3239, allocations: 7.984 kB / 437.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.3241, allocations: 95.89 kB / 437.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007332/0.3248, allocations: 0.4889 MB / 438 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006969/0.3255, allocations: 311.4 kB / 438.3 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.3258, allocations: 130.3 kB / 438.4 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.3258, allocations: 15.91 kB / 438.5 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.3258, allocations: 38.5 kB / 438.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.693e-06/0.3258, allocations: 0 / 438.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002423/0.3283, allocations: 1.187 MB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.3284, allocations: 135.4 kB / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.3288, allocations: 324.7 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.083e-05/0.3288, allocations: 41.7 kB / 440.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3289, allocations: 141.1 kB / 440.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.287e-05/0.329, allocations: 51.67 kB / 440.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.3291, allocations: 66.14 kB / 440.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.3293, allocations: 354.7 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.3294, allocations: 68.84 kB / 440.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003541/0.3298, allocations: 318.7 kB / 441.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005588/0.3303, allocations: 416.9 kB / 441.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3303, allocations: 3.938 kB / 441.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007256/0.3311, allocations: 413.1 kB / 442 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.3311, allocations: 8 kB / 442 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.3311, allocations: 12 kB / 442 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/0.3311, allocations: 12 kB / 442 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000274/0.3314, allocations: 91.83 kB / 442.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.3314, allocations: 16.5 kB / 442.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.3317, allocations: 31.89 kB / 442.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.3317, allocations: 24 kB / 442.2 MB, free: 11.95 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.000199/0.3319, allocations: 173.2 kB / 442.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005131/0.3324, allocations: 296.6 kB / 442.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007012/0.3331, allocations: 383.4 kB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3331, allocations: 4 kB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3331, allocations: 4 kB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3331, allocations: 4 kB / 443 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.3336, allocations: 300.4 kB / 443.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.3336, allocations: 4 kB / 443.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005937/0.3342, allocations: 119.9 kB / 443.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/0.3342, allocations: 11.92 kB / 443.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3342, allocations: 4 kB / 443.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.3342, allocations: 8.062 kB / 443.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3342, allocations: 0 / 443.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.3353, allocations: 0.7225 MB / 444.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.895e-05/0.3353, allocations: 39.69 kB / 444.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.921e-05/0.3354, allocations: 15.98 kB / 444.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.3356, allocations: 12 kB / 444.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.3357, allocations: 8.172 kB / 444.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.3357, allocations: 12.06 kB / 444.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002706/0.336, allocations: 243.1 kB / 444.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.336, allocations: 0 / 444.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004496/0.3364, allocations: 64 kB / 444.6 MB, free: 9.477 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.001377/0.3378, allocations: 1.28 MB / 445.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005978/0.3384, allocations: 281.6 kB / 446.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3384, allocations: 0 / 446.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.017e-05/0.3385, allocations: 31.92 kB / 446.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000816/0.3393, allocations: 196.7 kB / 446.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005216/0.3445, allocations: 3.827 MB / 450.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.345, allocations: 0.8074 MB / 451 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.3451, allocations: 39.27 kB / 451 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000193/0.3453, allocations: 111.4 kB / 451.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3453, allocations: 0 / 451.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03531/0.3806, allocations: 7.632 MB / 458.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/12.82, allocations: 3.938 kB / 458.7 MB, free: 11.03 MB / 366.1 MB " [Timeout remaining time 647] (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(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.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: 15.632127561955713]