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.0008439/0.0008439, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001/0.001, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8874/0.8874, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.914e-06/1.914e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.27e-05/2.462e-05, allocations: 8.75 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002766/0.00279, allocations: 2.126 MB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.003905, allocations: 0.5887 MB / 327.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.004025, allocations: 4 kB / 327.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.004132, allocations: 27.61 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.004355, allocations: 87.33 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.004572, allocations: 75.73 kB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.004807, allocations: 294.7 kB / 327.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.004929, allocations: 53 kB / 327.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.005151, allocations: 163.5 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.005269, allocations: 111.6 kB / 328.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.927e-05/0.005298, allocations: 20 kB / 328.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.259e-05/0.00532, allocations: 24 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.997e-05/0.00538, allocations: 63.62 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.186e-05/0.005442, allocations: 79.69 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002156/0.005658, allocations: 262.9 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.00566, allocations: 0 / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.005661, allocations: 0 / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.005667, allocations: 8 kB / 328.5 MB, free: 11.95 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.0007341/0.006401, allocations: 0.5469 MB / 329.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.006443, allocations: 8.031 kB / 329.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.275e-05/0.006485, allocations: 50.67 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.006531, allocations: 36.7 kB / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002986/0.00683, allocations: 258 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.006843, allocations: 8.656 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.006873, allocations: 16.38 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.007306, allocations: 382.9 kB / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.007314, allocations: 0 / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.007328, allocations: 8 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.007333, allocations: 0 / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.007462, allocations: 91.88 kB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004753/0.007937, allocations: 480.6 kB / 330.4 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004161/0.008353, allocations: 300.9 kB / 330.7 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.008486, allocations: 122.6 kB / 330.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.008509, allocations: 4 kB / 330.8 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.00853, allocations: 50.42 kB / 330.8 MB, free: 9.453 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.673e-06/0.008531, allocations: 0 / 330.8 MB, free: 9.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001474/0.01, allocations: 1.144 MB / 332 MB, free: 8.258 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.595e-05/0.01009, allocations: 134.8 kB / 332.1 MB, free: 8.102 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.01035, allocations: 328.6 kB / 332.4 MB, free: 7.773 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.01037, allocations: 33.7 kB / 332.5 MB, free: 7.734 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.023e-05/0.01044, allocations: 153.1 kB / 332.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.01047, allocations: 35.73 kB / 332.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.743e-05/0.01051, allocations: 33.7 kB / 332.7 MB, free: 7.504 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.01059, allocations: 338.8 kB / 333 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.821e-05/0.01065, allocations: 39.97 kB / 333.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.322e-05/0.01072, allocations: 95.44 kB / 333.2 MB, free: 7.008 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.01084, allocations: 126.8 kB / 333.3 MB, free: 6.859 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.01084, allocations: 0 / 333.3 MB, free: 6.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001949/0.01104, allocations: 189.3 kB / 333.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.01105, allocations: 7.938 kB / 333.5 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.01106, allocations: 4.219 kB / 333.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.01107, allocations: 7.938 kB / 333.5 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.319e-05/0.01114, allocations: 35.92 kB / 333.5 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.01115, allocations: 4 kB / 333.5 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.624e-05/0.01121, allocations: 15.94 kB / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.01122, allocations: 12.06 kB / 333.5 MB, free: 6.582 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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.000104/0.01133, allocations: 137.8 kB / 333.7 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004154/0.01174, allocations: 290.7 kB / 334 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.01214, allocations: 372.7 kB / 334.3 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01214, allocations: 8 kB / 334.3 MB, free: 5.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.01215, allocations: 4 kB / 334.3 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.01215, allocations: 0 / 334.3 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.01238, allocations: 236.6 kB / 334.6 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.01238, allocations: 0 / 334.6 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.01267, allocations: 119.8 kB / 334.7 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.01268, allocations: 7.938 kB / 334.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.01269, allocations: 8 kB / 334.7 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.0127, allocations: 4 kB / 334.7 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.0127, allocations: 4 kB / 334.7 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006019/0.0133, allocations: 0.6912 MB / 335.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.01334, allocations: 47.77 kB / 335.5 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.01338, allocations: 15.94 kB / 335.5 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.01349, allocations: 8 kB / 335.5 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.01352, allocations: 7.984 kB / 335.5 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.01354, allocations: 12 kB / 335.5 MB, free: 4.547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001605/0.0137, allocations: 247 kB / 335.7 MB, free: 4.309 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0137, allocations: 3.938 kB / 335.7 MB, free: 4.305 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002258/0.01392, allocations: 52.06 kB / 335.8 MB, free: 4.254 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 (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.0007748/0.0147, allocations: 1.253 MB / 337 MB, free: 2.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002478/0.01494, allocations: 188.5 kB / 337.2 MB, free: 2.785 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.01495, allocations: 0 / 337.2 MB, free: 2.785 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.822e-05/0.01498, allocations: 28.42 kB / 337.3 MB, free: 2.758 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.01545, allocations: 193.5 kB / 337.4 MB, free: 2.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.01811, allocations: 3.034 MB / 340.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.01823, allocations: 205.6 kB / 340.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.068e-05/0.01828, allocations: 30.91 kB / 340.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.0184, allocations: 108.5 kB / 340.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.0184, allocations: 0 / 340.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.03896, allocations: 7.623 MB / 348.4 MB, free: 7.555 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.831/6.87, allocations: 0 / 348.4 MB, free: 7.555 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/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: 8.554933023639023]