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.001283/0.001283, allocations: 76.06 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.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.0009117/0.0009117, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.889/0.889, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 1.794e-06/1.794e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/2.034e-05, allocations: 10.22 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002584/0.002605, allocations: 2.094 MB / 320.5 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008038/0.003409, allocations: 0.5692 MB / 321.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.003526, allocations: 4 kB / 321.1 MB, free: 3.652 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.003646, allocations: 31.55 kB / 321.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002446/0.00389, allocations: 75.42 kB / 321.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.004137, allocations: 71.77 kB / 321.3 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002559/0.004393, allocations: 291 kB / 321.6 MB, free: 3.191 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.004527, allocations: 61.05 kB / 321.6 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.004692, allocations: 159.4 kB / 321.8 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.004809, allocations: 111.5 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.586e-05/0.004845, allocations: 24 kB / 321.9 MB, free: 2.836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.311e-05/0.004868, allocations: 20 kB / 321.9 MB, free: 2.816 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.31e-05/0.004931, allocations: 59.69 kB / 322 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.405e-05/0.004995, allocations: 91.61 kB / 322.1 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.005205, allocations: 251 kB / 322.3 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.005207, allocations: 4 kB / 322.3 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.005208, allocations: 3.938 kB / 322.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.005212, allocations: 0 / 322.3 MB, free: 2.414 MB / 282.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.0007075/0.005919, allocations: 0.5469 MB / 322.9 MB, free: 1.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.00596, allocations: 8.922 kB / 322.9 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.325e-05/0.006003, allocations: 54.73 kB / 322.9 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.379e-05/0.006047, allocations: 32.75 kB / 323 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.006337, allocations: 258 kB / 323.2 MB, free: 1.465 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.006351, allocations: 12.66 kB / 323.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.006382, allocations: 16.36 kB / 323.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.006865, allocations: 378.2 kB / 323.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.006875, allocations: 4 kB / 323.6 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.006888, allocations: 4 kB / 323.6 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.006894, allocations: 4 kB / 323.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.007038, allocations: 91.89 kB / 323.7 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004754/0.007513, allocations: 464.7 kB / 324.2 MB, free: 452 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004366/0.00795, allocations: 307.6 kB / 324.5 MB, free: 116 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.008095, allocations: 133.7 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.008118, allocations: 4 kB / 324.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.008135, allocations: 35.22 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.443e-06/0.008136, allocations: 8 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001514/0.009651, allocations: 1.148 MB / 325.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.309e-05/0.009734, allocations: 142.5 kB / 325.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.009984, allocations: 328.6 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.01, allocations: 41.7 kB / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.01007, allocations: 137.1 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.425e-05/0.0101, allocations: 47.67 kB / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/0.01014, allocations: 29.72 kB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.01023, allocations: 338.8 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.01029, allocations: 35.98 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-05/0.01037, allocations: 94.84 kB / 327 MB, free: 13.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.01049, allocations: 130.7 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.0105, allocations: 0 / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001931/0.01069, allocations: 185.3 kB / 327.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.0107, allocations: 16.16 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.01071, allocations: 3.984 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.01072, allocations: 4 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.422e-05/0.01081, allocations: 31.98 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.01082, allocations: 3.938 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.031e-05/0.01089, allocations: 15.94 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.0109, allocations: 4 kB / 327.4 MB, free: 13.05 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.0001107/0.01101, allocations: 141.8 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004866/0.01149, allocations: 293 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004273/0.01192, allocations: 377.4 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.01193, allocations: 8 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.01193, allocations: 0 / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.01194, allocations: 3.984 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002551/0.01219, allocations: 236.6 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.0122, allocations: 4 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.01249, allocations: 111.9 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.01249, allocations: 11.88 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.01251, allocations: 15.98 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.01251, allocations: 4 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.01252, allocations: 4 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006459/0.01316, allocations: 0.6874 MB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.176e-05/0.0132, allocations: 39.78 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.01324, allocations: 15.94 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.01336, allocations: 11.98 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.692e-05/0.01338, allocations: 7.984 kB / 329.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.0134, allocations: 15.94 kB / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.01356, allocations: 243.1 kB / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01356, allocations: 4.062 kB / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002253/0.01378, allocations: 52 kB / 329.6 MB, free: 10.71 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.0008119/0.01459, allocations: 1.249 MB / 330.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000401/0.01499, allocations: 192.5 kB / 331 MB, free: 9.238 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.015, allocations: 4.438 kB / 331 MB, free: 9.234 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.747e-05/0.01504, allocations: 31.94 kB / 331.1 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.01551, allocations: 199.2 kB / 331.3 MB, free: 9.012 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.01786, allocations: 3.038 MB / 334.3 MB, free: 5.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.01798, allocations: 197.6 kB / 334.5 MB, free: 5.633 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.904e-05/0.01803, allocations: 30.95 kB / 334.5 MB, free: 5.605 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003949/0.01842, allocations: 112.5 kB / 334.6 MB, free: 5.496 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01842, allocations: 0 / 334.6 MB, free: 5.496 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01911/0.03753, allocations: 7.617 MB / 342.3 MB, free: 14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.978/7.016, allocations: 3.266 kB / 342.3 MB, free: 14 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/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: 8.764621086418629]