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.001887/0.001887, allocations: 111.8 kB / 20.43 MB, free: 1.473 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.002/0.002, allocations: 214 kB / 23.74 MB, free: 4.688 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.566/1.566, allocations: 230.6 MB / 257.5 MB, free: 8 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.001924/0.001924, allocations: 55.92 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3428, allocations: 53.35 MB / 431.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.005299/0.3481, allocations: 2.259 MB / 433.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.3499, allocations: 0.6238 MB / 434 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000319/0.3503, allocations: 4 kB / 434 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.3505, allocations: 27.61 kB / 434 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004708/0.3509, allocations: 75.42 kB / 434.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004371/0.3514, allocations: 79.77 kB / 434.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005378/0.3519, allocations: 275 kB / 434.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.3521, allocations: 56.91 kB / 434.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003299/0.3525, allocations: 127.4 kB / 434.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.3528, allocations: 147.2 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.3528, allocations: 20 kB / 434.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.935e-05/0.3529, allocations: 24 kB / 434.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.353, allocations: 63.69 kB / 434.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.3531, allocations: 127.1 kB / 435 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004048/0.3535, allocations: 259.1 kB / 435.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.3535, allocations: 0 / 435.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3536, allocations: 3.938 kB / 435.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.3536, allocations: 8 kB / 435.3 MB, free: 2.645 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.001388/0.355, allocations: 0.5437 MB / 435.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.355, allocations: 15.97 kB / 435.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.95e-05/0.3551, allocations: 46.73 kB / 435.9 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.3551, allocations: 36.7 kB / 435.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.3556, allocations: 262.7 kB / 436.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.3556, allocations: 12.22 kB / 436.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.3557, allocations: 19.98 kB / 436.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007357/0.3564, allocations: 381.8 kB / 436.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3564, allocations: 4 kB / 436.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.3564, allocations: 4 kB / 436.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3565, allocations: 8 kB / 436.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002415/0.3567, allocations: 91.89 kB / 436.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009194/0.3576, allocations: 496.7 kB / 437.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007912/0.3584, allocations: 318.5 kB / 437.5 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.3587, allocations: 137.2 kB / 437.6 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.3587, allocations: 4 kB / 437.6 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.3587, allocations: 30.56 kB / 437.7 MB, free: 108 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.964e-06/0.3587, allocations: 3.938 kB / 437.7 MB, free: 104 kB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002914/0.3616, allocations: 1.191 MB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.3618, allocations: 143.3 kB / 439 MB, free: 14.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004715/0.3623, allocations: 320.7 kB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/0.3623, allocations: 37.7 kB / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.3624, allocations: 141.1 kB / 439.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.121e-05/0.3625, allocations: 59.66 kB / 439.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.3627, allocations: 66.12 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.3629, allocations: 346.8 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.363, allocations: 72.83 kB / 440 MB, free: 13.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.3634, allocations: 314.8 kB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005908/0.364, allocations: 420.9 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.364, allocations: 7.938 kB / 440.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007654/0.3648, allocations: 405.1 kB / 441.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.3648, allocations: 12 kB / 441.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.3648, allocations: 8 kB / 441.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/0.3649, allocations: 12 kB / 441.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.3652, allocations: 95.83 kB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.09e-05/0.3652, allocations: 16.5 kB / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.3655, allocations: 31.88 kB / 441.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.094e-05/0.3655, allocations: 24 kB / 441.3 MB, free: 12.07 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.000244/0.3657, allocations: 169.5 kB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000605/0.3663, allocations: 300.6 kB / 441.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000835/0.3672, allocations: 379.4 kB / 442.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.3672, allocations: 4 kB / 442.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3672, allocations: 4 kB / 442.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.3672, allocations: 7.984 kB / 442.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005765/0.3678, allocations: 288.4 kB / 442.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.3678, allocations: 4 kB / 442.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006639/0.3685, allocations: 127.8 kB / 442.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/0.3685, allocations: 4 kB / 442.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.3685, allocations: 4 kB / 442.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.139e-05/0.3685, allocations: 12 kB / 442.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.3685, allocations: 0 / 442.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.3699, allocations: 0.7226 MB / 443.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.37, allocations: 43.86 kB / 443.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.934e-05/0.3701, allocations: 12 kB / 443.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002789/0.3703, allocations: 15.94 kB / 443.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.528e-05/0.3704, allocations: 7.969 kB / 443.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.3704, allocations: 20.06 kB / 443.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003568/0.3708, allocations: 243 kB / 443.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3708, allocations: 0 / 443.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005244/0.3713, allocations: 64 kB / 443.7 MB, free: 9.59 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.001757/0.3731, allocations: 1.268 MB / 445 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007634/0.3738, allocations: 290.5 kB / 445.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3738, allocations: 0 / 445.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.609e-05/0.3739, allocations: 23.98 kB / 445.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008762/0.3748, allocations: 204.9 kB / 445.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006512/0.3813, allocations: 3.821 MB / 449.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.3818, allocations: 0.8074 MB / 450.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.382, allocations: 35.28 kB / 450.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002316/0.3822, allocations: 119.4 kB / 450.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3822, allocations: 0 / 450.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05024/0.4325, allocations: 7.592 MB / 457.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.14, allocations: 4.734 kB / 457.9 MB, free: 11.2 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.88303113100119]