Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.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.0008742/0.0008742, allocations: 83.64 kB / 21.43 MB, free: 3.133 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.004781/0.004781, allocations: 162.7 kB / 24.69 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8229/0.8229, allocations: 158.6 MB / 186.5 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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.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.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 298.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/2.023e-05, allocations: 2.281 kB / 298.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1198/0.1198, allocations: 11.81 MB / 310.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007287/0.1271, allocations: 10.13 MB / 320.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.1272, allocations: 1.75 kB / 320.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003231/0.1275, allocations: 71.86 kB / 320.4 MB, free: 3.109 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.1278, allocations: 85.03 kB / 320.5 MB, free: 3.055 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01164/0.1394, allocations: 5.088 MB / 325.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.1398, allocations: 231.6 kB / 325.8 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.153e-05/0.1398, allocations: 10.12 kB / 325.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003714/0.1402, allocations: 217.1 kB / 326 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.1403, allocations: 63.97 kB / 326.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.1403, allocations: 7.938 kB / 326.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009515/0.1498, allocations: 6.683 MB / 332.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.916e-05/0.1499, allocations: 27.31 kB / 332.8 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.1501, allocations: 51.25 kB / 332.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009593/0.1596, allocations: 4.973 MB / 337.8 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1596, allocations: 0 / 337.8 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1597, allocations: 0 / 337.8 MB, free: 7.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1597, allocations: 4 kB / 337.8 MB, free: 7.477 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.002834/0.1625, allocations: 1.087 MB / 338.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.1625, allocations: 11.98 kB / 338.9 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.52e-05/0.1626, allocations: 48.52 kB / 339 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002679/0.1628, allocations: 56.8 kB / 339 MB, free: 6.234 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.1631, allocations: 165.6 kB / 339.2 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.1631, allocations: 12.38 kB / 339.2 MB, free: 6.035 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.1632, allocations: 16.94 kB / 339.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006847/0.1639, allocations: 436 kB / 339.7 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.1639, allocations: 11.86 kB / 339.7 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.1639, allocations: 10.06 kB / 339.7 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.1639, allocations: 4 kB / 339.7 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006844/0.1646, allocations: 347.6 kB / 340 MB, free: 5.188 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009013/0.1655, allocations: 1.032 MB / 341.1 MB, free: 4.086 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004713/0.166, allocations: 271.4 kB / 341.3 MB, free: 3.797 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.1661, allocations: 110.5 kB / 341.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04161/0.2077, allocations: 25.14 MB / 366.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.2078, allocations: 46.5 kB / 366.6 MB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.015e-06/0.2078, allocations: 3.984 kB / 366.6 MB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003613/0.2114, allocations: 1.508 MB / 368.1 MB, free: 8.902 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.2114, allocations: 110.8 kB / 368.2 MB, free: 8.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.325e-05/0.2115, allocations: 113.8 kB / 368.4 MB, free: 8.648 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2115, allocations: 29.7 kB / 368.4 MB, free: 8.613 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.2116, allocations: 108.6 kB / 368.5 MB, free: 8.504 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.302e-05/0.2116, allocations: 126.9 kB / 368.6 MB, free: 8.379 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.972e-05/0.2117, allocations: 69.69 kB / 368.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.109e-05/0.2118, allocations: 322.9 kB / 369 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.212, allocations: 139.8 kB / 369.1 MB, free: 7.844 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.2122, allocations: 198.6 kB / 369.3 MB, free: 7.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/0.2127, allocations: 346.5 kB / 369.7 MB, free: 7.262 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2127, allocations: 0 / 369.7 MB, free: 7.262 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006017/0.2133, allocations: 430 kB / 370.1 MB, free: 6.832 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2133, allocations: 8 kB / 370.1 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2133, allocations: 0 / 370.1 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000157/0.2135, allocations: 40.78 kB / 370.1 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.2137, allocations: 91.88 kB / 370.2 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002664/0.214, allocations: 0.5407 MB / 370.8 MB, free: 6.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.2141, allocations: 24.17 kB / 370.8 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.2141, allocations: 19.98 kB / 370.8 MB, free: 6.082 MB / 330.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: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.2142, allocations: 141.7 kB / 370.9 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/0.2143, allocations: 15.91 kB / 371 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.2157, allocations: 1.508 MB / 372.5 MB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.2157, allocations: 23.95 kB / 372.5 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2157, allocations: 3.938 kB / 372.5 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2157, allocations: 0 / 372.5 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.2174, allocations: 1.971 MB / 374.5 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.2174, allocations: 3.938 kB / 374.5 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002043/0.2176, allocations: 87.86 kB / 374.6 MB, free: 2.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001745/0.2178, allocations: 72.92 kB / 374.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.2178, allocations: 11.98 kB / 374.6 MB, free: 2.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002446/0.218, allocations: 0.5991 MB / 375.2 MB, free: 1.543 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.218, allocations: 0 / 375.2 MB, free: 1.543 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.2193, allocations: 1.734 MB / 377 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.2194, allocations: 55.56 kB / 377 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.2194, allocations: 8 kB / 377 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.2196, allocations: 23.98 kB / 377.1 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.458e-05/0.2196, allocations: 39.86 kB / 377.1 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.2197, allocations: 15.98 kB / 377.1 MB, free: 15.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.583e-05/0.2197, allocations: 87.28 kB / 377.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2197, allocations: 4 kB / 377.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002205/0.2219, allocations: 0.9707 MB / 378.2 MB, free: 14.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004812/0.2267, allocations: 3.462 MB / 381.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008346/0.2275, allocations: 0.6084 MB / 382.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2275, allocations: 0 / 382.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.228, allocations: 473.5 kB / 382.7 MB, free: 10 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.2285, allocations: 74.03 kB / 382.8 MB, free: 9.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004226/0.2327, allocations: 3.855 MB / 386.6 MB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.2328, allocations: 216.3 kB / 386.8 MB, free: 5.676 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000247/0.2331, allocations: 137.7 kB / 387 MB, free: 5.543 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.2332, allocations: 128.4 kB / 387.1 MB, free: 5.418 MB / 346.7 MB Notification: Performance of SimCode: time 7.92e-07/0.2332, allocations: 0 / 387.1 MB, free: 5.418 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05193/0.2851, allocations: 41.46 MB / 428.6 MB, free: 11.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.143/9.428, allocations: 19.81 kB / 428.6 MB, free: 11.82 MB / 394.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.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: 11.244467290118337]