Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009032/0.0009034, allocations: 171.4 kB / 16.72 MB, free: 5.055 MB / 13.93 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.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007133/0.0007133, allocations: 92.97 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002788/0.0002792, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1892, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01073/0.2, allocations: 11.97 MB / 387.2 MB, free: 35.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008659/0.2087, allocations: 10.71 MB / 397.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.2089, allocations: 4 kB / 397.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002689/0.2091, allocations: 63.67 kB / 397.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002459/0.2094, allocations: 75.5 kB / 398 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009599/0.219, allocations: 3.863 MB / 401.9 MB, free: 21.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.2193, allocations: 238.9 kB / 402.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.338e-05/0.2193, allocations: 17.44 kB / 402.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.2197, allocations: 175.2 kB / 402.3 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.2198, allocations: 63.77 kB / 402.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.2198, allocations: 4 kB / 402.4 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009528/0.2294, allocations: 6.672 MB / 409 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.952e-05/0.2294, allocations: 23.91 kB / 409 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.854e-05/0.2295, allocations: 97.42 kB / 409.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003332/0.2329, allocations: 2.588 MB / 411.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2329, allocations: 0 / 411.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2329, allocations: 3.938 kB / 411.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2329, allocations: 0 / 411.7 MB, free: 12.07 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.004057/0.237, allocations: 1.1 MB / 412.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.237, allocations: 8.031 kB / 412.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.582e-05/0.2371, allocations: 50.73 kB / 412.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004191/0.2375, allocations: 56.7 kB / 412.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.2377, allocations: 224.1 kB / 413.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.2377, allocations: 16.66 kB / 413.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.2378, allocations: 16.12 kB / 413.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.2389, allocations: 390.5 kB / 413.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.2389, allocations: 3.906 kB / 413.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.239, allocations: 8 kB / 413.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.239, allocations: 11.98 kB / 413.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.2402, allocations: 368.2 kB / 414 MB, free: 9.723 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.001011/0.2413, allocations: 1.188 MB / 415.1 MB, free: 8.434 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/0.242, allocations: 287.8 kB / 415.4 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.2422, allocations: 118.8 kB / 415.5 MB, free: 8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08718/0.3294, allocations: 47.88 MB / 463.4 MB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.3295, allocations: 38.56 kB / 463.5 MB, free: 2.453 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.054e-06/0.3295, allocations: 0 / 463.5 MB, free: 2.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.006548/0.336, allocations: 1.616 MB / 465.1 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.3361, allocations: 118.7 kB / 465.2 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.3362, allocations: 121.7 kB / 465.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.3363, allocations: 37.7 kB / 465.3 MB, free: 480 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.3363, allocations: 100.5 kB / 465.4 MB, free: 376 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.227e-05/0.3364, allocations: 126.3 kB / 465.6 MB, free: 248 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.3365, allocations: 4 kB / 465.6 MB, free: 244 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3366, allocations: 330.8 kB / 465.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003862/0.337, allocations: 147.7 kB / 466 MB, free: 15.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003948/0.3374, allocations: 202.5 kB / 466.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007743/0.3382, allocations: 346.7 kB / 466.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3382, allocations: 0 / 466.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001031/0.3392, allocations: 437.9 kB / 467 MB, free: 14.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.3393, allocations: 9.875 kB / 467 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3393, allocations: 0 / 467 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/0.3395, allocations: 36.83 kB / 467.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/0.34, allocations: 96.03 kB / 467.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003313/0.3403, allocations: 0.5523 MB / 467.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.3406, allocations: 23.89 kB / 467.7 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.729e-05/0.3406, allocations: 19.98 kB / 467.7 MB, free: 13.98 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001411/0.3408, allocations: 137.8 kB / 467.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.052e-05/0.3409, allocations: 11.91 kB / 467.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/0.3429, allocations: 1.462 MB / 469.3 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-05/0.3429, allocations: 23.97 kB / 469.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3429, allocations: 4.031 kB / 469.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.3429, allocations: 3.984 kB / 469.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/0.3456, allocations: 1.983 MB / 471.4 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/0.3457, allocations: 8 kB / 471.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.3461, allocations: 87.86 kB / 471.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003209/0.3464, allocations: 76.88 kB / 471.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.3465, allocations: 12 kB / 471.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000337/0.3468, allocations: 0.5913 MB / 472.1 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.3469, allocations: 3.984 kB / 472.1 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/0.349, allocations: 1.704 MB / 473.8 MB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.948e-05/0.3491, allocations: 132.4 kB / 474 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.3491, allocations: 12.03 kB / 474 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003541/0.3495, allocations: 27.92 kB / 474 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.349e-05/0.3496, allocations: 31.89 kB / 474 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.319e-05/0.3496, allocations: 20.36 kB / 474.1 MB, free: 7.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.218e-05/0.3497, allocations: 99.2 kB / 474.2 MB, free: 7.383 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3497, allocations: 0 / 474.2 MB, free: 7.383 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002579/0.3523, allocations: 0.9566 MB / 475.1 MB, free: 6.426 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006777/0.3591, allocations: 3.266 MB / 478.4 MB, free: 3.113 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.3603, allocations: 0.5962 MB / 479 MB, free: 2.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3603, allocations: 0 / 479 MB, free: 2.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007464/0.361, allocations: 0.5209 MB / 479.5 MB, free: 2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.3618, allocations: 82.2 kB / 479.6 MB, free: 1.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/0.367, allocations: 2.723 MB / 482.3 MB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.3674, allocations: 0.8178 MB / 483.1 MB, free: 14.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.3676, allocations: 135.4 kB / 483.3 MB, free: 14.13 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3676, allocations: 0 / 483.3 MB, free: 14.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.611/4.978, allocations: 22.02 MB / 0.4934 GB, free: 8.082 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches