Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000866/0.000866, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008897/0.0008897, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8459/0.8459, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.371e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.2665/0.2665, allocations: 131.3 MB / 455.8 MB, free: 5.711 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.268, allocations: 2.252 MB / 458.1 MB, free: 5.703 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.741e-05/0.268, allocations: 2.094 kB / 458.1 MB, free: 5.703 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.2682, allocations: 27.33 kB / 458.1 MB, free: 5.703 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007195/0.2689, allocations: 351 kB / 458.4 MB, free: 5.699 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000133/0.269, allocations: 59.69 kB / 458.5 MB, free: 5.699 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.2691, allocations: 109.1 kB / 458.6 MB, free: 5.699 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.589e-05/0.2692, allocations: 10.36 kB / 458.6 MB, free: 5.695 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.2693, allocations: 60.2 kB / 458.7 MB, free: 5.695 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.169e-05/0.2693, allocations: 30.62 kB / 458.7 MB, free: 5.695 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.2693, allocations: 3.281 kB / 458.7 MB, free: 5.695 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003983/0.2697, allocations: 346.4 kB / 459 MB, free: 5.691 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.2697, allocations: 11.38 kB / 459.1 MB, free: 5.691 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.2698, allocations: 33.7 kB / 459.1 MB, free: 5.691 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003169/0.2701, allocations: 359.8 kB / 459.4 MB, free: 5.672 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.2701, allocations: 0.7812 kB / 459.4 MB, free: 5.672 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2701, allocations: 0 / 459.4 MB, free: 5.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.2701, allocations: 0 / 459.4 MB, free: 5.672 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005394/0.2706, allocations: 388.2 kB / 459.8 MB, free: 5.371 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2707, allocations: 13.08 kB / 459.8 MB, free: 5.367 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.275e-05/0.2707, allocations: 40.11 kB / 459.9 MB, free: 5.328 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/0.2734, allocations: 488 kB / 460.3 MB, free: 5.324 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.597e-05/0.2735, allocations: 116.5 kB / 460.5 MB, free: 5.191 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.2735, allocations: 11.47 kB / 460.5 MB, free: 5.188 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.2735, allocations: 10.33 kB / 460.5 MB, free: 5.188 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.274, allocations: 300 kB / 460.8 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.274, allocations: 0 / 460.8 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.274, allocations: 3.344 kB / 460.8 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.274, allocations: 0 / 460.8 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004239/0.2744, allocations: 277.8 kB / 461 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001626/0.2746, allocations: 207.4 kB / 461.2 MB, free: 4.969 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.2748, allocations: 150.8 kB / 461.4 MB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.2749, allocations: 83.69 kB / 461.5 MB, free: 4.934 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.2749, allocations: 8.109 kB / 461.5 MB, free: 4.934 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.292e-05/0.275, allocations: 34.72 kB / 461.5 MB, free: 4.895 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.112e-06/0.275, allocations: 0 / 461.5 MB, free: 4.895 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.001097/0.2761, allocations: 0.5817 MB / 462.1 MB, free: 4.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.055e-05/0.2761, allocations: 54.03 kB / 462.2 MB, free: 4.773 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.791e-05/0.2761, allocations: 115 kB / 462.3 MB, free: 4.672 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.2761, allocations: 30.61 kB / 462.3 MB, free: 4.641 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.5e-05/0.2761, allocations: 89.62 kB / 462.4 MB, free: 4.559 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/0.2762, allocations: 84.12 kB / 462.5 MB, free: 4.504 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.2763, allocations: 44.11 kB / 462.5 MB, free: 4.488 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.772e-05/0.2763, allocations: 320.3 kB / 462.8 MB, free: 4.176 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.2764, allocations: 105.3 kB / 462.9 MB, free: 4.176 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.2766, allocations: 110.1 kB / 463 MB, free: 4.172 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.2769, allocations: 222.2 kB / 463.2 MB, free: 4.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2769, allocations: 2.344 kB / 463.3 MB, free: 4.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003559/0.2772, allocations: 281.3 kB / 463.5 MB, free: 4.117 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.2772, allocations: 8.922 kB / 463.5 MB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2773, allocations: 0 / 463.5 MB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2773, allocations: 0.8125 kB / 463.5 MB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.2775, allocations: 61.06 kB / 463.6 MB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.177e-06/0.2775, allocations: 0 / 463.6 MB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.2776, allocations: 20.17 kB / 463.6 MB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.2776, allocations: 12.62 kB / 463.6 MB, free: 4.113 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (24): * Single equations (assignments): 24 * 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 6.325e-05/0.2777, allocations: 122.1 kB / 463.7 MB, free: 4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.947e-05/0.2777, allocations: 10.17 kB / 463.8 MB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004935/0.2782, allocations: 348.5 kB / 464.1 MB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2782, allocations: 3.469 kB / 464.1 MB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2782, allocations: 3.141 kB / 464.1 MB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.2782, allocations: 5.906 kB / 464.1 MB, free: 3.953 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007471/0.2789, allocations: 0.6465 MB / 464.8 MB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2789, allocations: 0 / 464.8 MB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.2791, allocations: 62.59 kB / 464.8 MB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2791, allocations: 9.969 kB / 464.8 MB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.2791, allocations: 14.59 kB / 464.8 MB, free: 3.637 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2791, allocations: 6.125 kB / 464.8 MB, free: 3.637 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2791, allocations: 9.047 kB / 464.9 MB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.2795, allocations: 402.6 kB / 465.2 MB, free: 3.453 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.126e-05/0.2795, allocations: 19.61 kB / 465.3 MB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.2796, allocations: 6.781 kB / 465.3 MB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.2797, allocations: 17.92 kB / 465.3 MB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.485e-05/0.2797, allocations: 18.75 kB / 465.3 MB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.2797, allocations: 16.3 kB / 465.3 MB, free: 3.441 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.563e-05/0.2798, allocations: 88.89 kB / 465.4 MB, free: 3.367 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2798, allocations: 0.6562 kB / 465.4 MB, free: 3.367 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002166/0.28, allocations: 59 kB / 465.5 MB, free: 3.363 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (26): * Single equations (assignments): 26 * 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.0005649/0.2805, allocations: 0.9703 MB / 466.4 MB, free: 2.648 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003818/0.2809, allocations: 250.1 kB / 466.7 MB, free: 2.641 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2809, allocations: 0 / 466.7 MB, free: 2.641 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.2811, allocations: 126.1 kB / 466.8 MB, free: 2.641 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.2814, allocations: 58.38 kB / 466.9 MB, free: 2.637 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.2831, allocations: 2.101 MB / 469 MB, free: 1.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.391e-05/0.2831, allocations: 89.08 kB / 469.1 MB, free: 1.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001798/0.2833, allocations: 60.55 kB / 469.1 MB, free: 1.258 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.2834, allocations: 54.75 kB / 469.2 MB, free: 1.25 MB / 410.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2834, allocations: 0.9062 kB / 469.2 MB, free: 1.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.301, allocations: 6.676 MB / 475.8 MB, free: 76 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.658/6.959, allocations: 5.031 kB / 475.8 MB, free: 72 kB / 410.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.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.536961427889764]