Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 104.7 kB / 17.15 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.00115, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 52.22 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06832/0.06937, allocations: 46.63 MB / 326.7 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.004962/0.07437, allocations: 4.506 MB / 331.2 MB, free: 268 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.0761, allocations: 1.83 MB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.07616, allocations: 0 / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.07638, allocations: 27.81 kB / 333 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002692/0.07666, allocations: 119.3 kB / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005428/0.07721, allocations: 223.5 kB / 333.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003426/0.07756, allocations: 366.8 kB / 333.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.371e-05/0.07764, allocations: 20.88 kB / 333.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.07787, allocations: 119.6 kB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.07799, allocations: 91.59 kB / 334 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.07802, allocations: 4 kB / 334 MB, free: 13.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.07826, allocations: 103.9 kB / 334.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.504e-05/0.07834, allocations: 35.89 kB / 334.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.743e-05/0.07843, allocations: 71.7 kB / 334.2 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.07873, allocations: 207.7 kB / 334.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.07874, allocations: 0 / 334.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.07875, allocations: 3.938 kB / 334.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.07876, allocations: 4 kB / 334.4 MB, free: 13.05 MB / 286.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.0009381/0.0797, allocations: 491.3 kB / 334.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.07974, allocations: 8.031 kB / 334.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.527e-05/0.0798, allocations: 46.73 kB / 334.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.07998, allocations: 20.83 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.08019, allocations: 212.1 kB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.08021, allocations: 8.656 kB / 335.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.08024, allocations: 20.38 kB / 335.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.08064, allocations: 212.6 kB / 335.4 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.08066, allocations: 4 kB / 335.4 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.08069, allocations: 8 kB / 335.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.0807, allocations: 4 kB / 335.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003426/0.08105, allocations: 151.8 kB / 335.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.08224, allocations: 0.944 MB / 336.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003856/0.08264, allocations: 150.8 kB / 336.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.08279, allocations: 56.77 kB / 336.7 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005571/0.08336, allocations: 0.5031 MB / 337.2 MB, free: 9.977 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.0834, allocations: 42.5 kB / 337.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.08341, allocations: 0 / 337.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.002512/0.08593, allocations: 0.7708 MB / 338 MB, free: 9.102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.08598, allocations: 55.41 kB / 338.1 MB, free: 9.035 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.08609, allocations: 146.4 kB / 338.2 MB, free: 8.883 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.08612, allocations: 33.7 kB / 338.2 MB, free: 8.844 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.45e-05/0.0862, allocations: 139.8 kB / 338.4 MB, free: 8.703 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.08626, allocations: 78.98 kB / 338.5 MB, free: 8.625 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.115e-05/0.08636, allocations: 57.61 kB / 338.5 MB, free: 8.562 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.08646, allocations: 326.8 kB / 338.8 MB, free: 8.234 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.0867, allocations: 87.94 kB / 338.9 MB, free: 8.148 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.087, allocations: 201.1 kB / 339.1 MB, free: 7.902 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005441/0.08756, allocations: 290.2 kB / 339.4 MB, free: 7.57 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.08757, allocations: 0 / 339.4 MB, free: 7.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006675/0.08824, allocations: 325.1 kB / 339.7 MB, free: 7.246 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.08827, allocations: 4 kB / 339.7 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.08828, allocations: 7.984 kB / 339.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.0883, allocations: 8 kB / 339.7 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003677/0.08867, allocations: 80.27 kB / 339.8 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.08869, allocations: 4 kB / 339.8 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.08892, allocations: 15.98 kB / 339.8 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.152e-05/0.08896, allocations: 19.94 kB / 339.9 MB, free: 7.109 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.0001106/0.08907, allocations: 145.6 kB / 340 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.586e-05/0.08914, allocations: 15.75 kB / 340 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007098/0.08985, allocations: 242.6 kB / 340.2 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.08987, allocations: 3.984 kB / 340.2 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.08988, allocations: 4 kB / 340.3 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.08989, allocations: 3.984 kB / 340.3 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.09107, allocations: 0.5951 MB / 340.9 MB, free: 6.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.09109, allocations: 0 / 340.9 MB, free: 6.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.09138, allocations: 52.08 kB / 340.9 MB, free: 5.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.09139, allocations: 4 kB / 340.9 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.09142, allocations: 11.94 kB / 340.9 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.09142, allocations: 0 / 340.9 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.09143, allocations: 3.938 kB / 340.9 MB, free: 5.957 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007877/0.09222, allocations: 406.6 kB / 341.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.498e-05/0.09228, allocations: 88.95 kB / 341.4 MB, free: 5.426 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.09232, allocations: 12 kB / 341.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.09257, allocations: 15.98 kB / 341.4 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.0926, allocations: 19.92 kB / 341.5 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.09263, allocations: 7.984 kB / 341.5 MB, free: 5.371 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.418e-05/0.09271, allocations: 111.2 kB / 341.6 MB, free: 5.262 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09272, allocations: 0 / 341.6 MB, free: 5.262 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000342/0.09306, allocations: 60 kB / 341.6 MB, free: 5.203 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.001136/0.0942, allocations: 0.9614 MB / 342.6 MB, free: 4.199 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005486/0.09476, allocations: 215.8 kB / 342.8 MB, free: 3.988 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.09478, allocations: 4.875 kB / 342.8 MB, free: 3.984 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002662/0.09505, allocations: 96.06 kB / 342.9 MB, free: 3.891 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.09543, allocations: 39.91 kB / 342.9 MB, free: 3.852 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.09856, allocations: 2.407 MB / 345.3 MB, free: 1.254 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.09882, allocations: 0.7167 MB / 346.1 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002568/0.09908, allocations: 49.94 kB / 346.1 MB, free: 472 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.0992, allocations: 47.42 kB / 346.2 MB, free: 424 kB / 286.1 MB Notification: Performance of SimCode: time 3.9e-07/0.09921, allocations: 0 / 346.2 MB, free: 424 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.323/1.423, allocations: 4.255 MB / 350.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/1.423, allocations: 195.7 kB / 350.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/3.919, allocations: 0 / 350.6 MB, free: 11.87 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches