Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 181.7 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 47.92 kB / 370.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2928, allocations: 52.18 MB / 422.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003972/0.2968, allocations: 2.241 MB / 424.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.298, allocations: 0.6043 MB / 425.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.2982, allocations: 3.938 kB / 425.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.2984, allocations: 23.67 kB / 425.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.2987, allocations: 83.36 kB / 425.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.299, allocations: 75.84 kB / 425.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003944/0.2994, allocations: 283 kB / 425.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.2996, allocations: 41.16 kB / 426 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.2998, allocations: 123.4 kB / 426.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.3, allocations: 143.2 kB / 426.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.56e-05/0.3, allocations: 24 kB / 426.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.556e-05/0.3001, allocations: 20 kB / 426.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.3002, allocations: 71.67 kB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.3003, allocations: 127.1 kB / 426.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003605/0.3007, allocations: 267 kB / 426.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3007, allocations: 0 / 426.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3007, allocations: 0 / 426.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.3007, allocations: 0 / 426.7 MB, free: 10.57 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.001242/0.3019, allocations: 0.5554 MB / 427.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.302, allocations: 8.031 kB / 427.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.314e-05/0.302, allocations: 46.73 kB / 427.3 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.891e-05/0.3021, allocations: 32.75 kB / 427.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.3026, allocations: 266.7 kB / 427.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.3026, allocations: 16.2 kB / 427.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.259e-05/0.3026, allocations: 16 kB / 427.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.3033, allocations: 371.7 kB / 428 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3033, allocations: 0 / 428 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.3033, allocations: 4 kB / 428 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3033, allocations: 4 kB / 428 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.3035, allocations: 87.95 kB / 428.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007573/0.3043, allocations: 0.5005 MB / 428.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007193/0.305, allocations: 307.8 kB / 428.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.3053, allocations: 137.3 kB / 429.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.981e-05/0.3053, allocations: 11.86 kB / 429.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.3053, allocations: 34.56 kB / 429.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.3053, allocations: 4 kB / 429.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002476/0.3078, allocations: 1.192 MB / 430.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.3079, allocations: 142.9 kB / 430.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003967/0.3083, allocations: 324.6 kB / 430.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.3083, allocations: 37.64 kB / 430.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.3085, allocations: 149.1 kB / 430.9 MB, free: 6.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.751e-05/0.3085, allocations: 47.72 kB / 431 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.698e-05/0.3086, allocations: 66.12 kB / 431 MB, free: 5.992 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3088, allocations: 350.8 kB / 431.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.3089, allocations: 76.83 kB / 431.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003421/0.3093, allocations: 314.8 kB / 431.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000495/0.3098, allocations: 412.9 kB / 432.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3098, allocations: 8 kB / 432.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006483/0.3104, allocations: 416.7 kB / 432.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3104, allocations: 8.969 kB / 432.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3104, allocations: 8 kB / 432.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.3105, allocations: 16 kB / 432.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.3107, allocations: 95.83 kB / 432.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/0.3107, allocations: 15.94 kB / 432.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.311, allocations: 23.92 kB / 432.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.903e-05/0.311, allocations: 24 kB / 432.8 MB, free: 4 MB / 334.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.0001841/0.3112, allocations: 169.5 kB / 432.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004861/0.3117, allocations: 294.4 kB / 433.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006609/0.3123, allocations: 379.4 kB / 433.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.3123, allocations: 8 kB / 433.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3123, allocations: 0 / 433.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3123, allocations: 3.984 kB / 433.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004104/0.3128, allocations: 300.4 kB / 433.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3128, allocations: 0 / 433.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005614/0.3133, allocations: 123.8 kB / 434 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.3133, allocations: 4 kB / 434 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.3134, allocations: 8 kB / 434 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3134, allocations: 4 kB / 434 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3134, allocations: 3.938 kB / 434 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.3144, allocations: 0.7148 MB / 434.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.767e-05/0.3145, allocations: 43.72 kB / 434.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.521e-05/0.3145, allocations: 12 kB / 434.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.3148, allocations: 16.06 kB / 434.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.3148, allocations: 7.984 kB / 434.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.3148, allocations: 20 kB / 434.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002692/0.3151, allocations: 251 kB / 435.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3151, allocations: 0 / 435.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004305/0.3155, allocations: 60 kB / 435.2 MB, free: 1.527 MB / 334.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.001358/0.3169, allocations: 1.272 MB / 436.4 MB, free: 232 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000555/0.3175, allocations: 288.5 kB / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3175, allocations: 0 / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.813e-05/0.3175, allocations: 29.48 kB / 436.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007668/0.3183, allocations: 197.4 kB / 436.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005521/0.3238, allocations: 3.835 MB / 440.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005771/0.3244, allocations: 0.8074 MB / 441.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.3245, allocations: 35.28 kB / 441.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.3247, allocations: 119.4 kB / 441.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3247, allocations: 0 / 441.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04301/0.3677, allocations: 7.605 MB / 449.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.18, allocations: 11.98 kB / 449.4 MB, free: 3.109 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --stepSize=0.0545355 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 14.744899831013754]