Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.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.001761/0.001761, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 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.002258/0.002258, allocations: 214.7 kB / 24.52 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.355/1.355, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.IdealGasH2O,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 47.92 kB / 378.5 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.221, allocations: 53.37 MB / 431.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.364/0.585, allocations: 131.2 MB / 0.5498 GB, free: 1.293 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.5869, allocations: 2.261 MB / 0.552 GB, free: 1.285 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.798e-05/0.587, allocations: 1.203 kB / 0.552 GB, free: 1.285 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.5871, allocations: 20.88 kB / 0.5521 GB, free: 1.285 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008481/0.588, allocations: 336.6 kB / 0.5524 GB, free: 1.281 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001707/0.5881, allocations: 67.22 kB / 0.5525 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001056/0.5882, allocations: 101.1 kB / 0.5525 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.5883, allocations: 5.578 kB / 0.5526 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.988e-05/0.5884, allocations: 51.03 kB / 0.5526 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.532e-05/0.5884, allocations: 37.7 kB / 0.5526 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.5885, allocations: 2.281 kB / 0.5526 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005503/0.589, allocations: 362.5 kB / 0.553 GB, free: 1.273 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.588e-05/0.589, allocations: 11.92 kB / 0.553 GB, free: 1.273 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.757e-05/0.5891, allocations: 28.52 kB / 0.553 GB, free: 1.273 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.5895, allocations: 320.1 kB / 0.5533 GB, free: 1.254 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.5895, allocations: 1.938 kB / 0.5533 GB, free: 1.254 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5895, allocations: 1.219 kB / 0.5533 GB, free: 1.254 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.5895, allocations: 2.75 kB / 0.5533 GB, free: 1.254 MB / 446.1 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.0008626/0.5903, allocations: 386.7 kB / 0.5537 GB, free: 16.95 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.5904, allocations: 9.125 kB / 0.5537 GB, free: 16.95 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.18e-05/0.5904, allocations: 3.719 kB / 0.5537 GB, free: 16.95 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.362e-05/0.5904, allocations: 40.73 kB / 0.5538 GB, free: 16.91 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005608/0.596, allocations: 463.9 kB / 0.5542 GB, free: 16.91 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.5962, allocations: 125.1 kB / 0.5543 GB, free: 16.77 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.5962, allocations: 2.656 kB / 0.5543 GB, free: 16.77 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.5963, allocations: 10.28 kB / 0.5543 GB, free: 16.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/0.5969, allocations: 295.5 kB / 0.5546 GB, free: 16.74 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.597, allocations: 3.469 kB / 0.5546 GB, free: 16.74 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.53e-05/0.597, allocations: 3.188 kB / 0.5546 GB, free: 16.74 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.597, allocations: 4.969 kB / 0.5546 GB, free: 16.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006807/0.5977, allocations: 280.6 kB / 0.5549 GB, free: 16.73 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002388/0.5979, allocations: 203.9 kB / 0.5551 GB, free: 16.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.5983, allocations: 151.6 kB / 0.5552 GB, free: 16.53 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.5985, allocations: 81.69 kB / 0.5553 GB, free: 16.52 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.5985, allocations: 2.875 kB / 0.5553 GB, free: 16.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.5985, allocations: 33.62 kB / 0.5553 GB, free: 16.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=17): time 1.874e-06/0.5985, allocations: 1.203 kB / 0.5553 GB, free: 16.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=24): time 0.00195/0.6005, allocations: 0.5836 MB / 0.5559 GB, free: 16.42 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.6005, allocations: 53.69 kB / 0.556 GB, free: 16.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.717e-05/0.6006, allocations: 109.4 kB / 0.5561 GB, free: 16.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.6006, allocations: 31.83 kB / 0.5561 GB, free: 16.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.657e-05/0.6007, allocations: 81.3 kB / 0.5562 GB, free: 16.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.489e-05/0.6007, allocations: 91.56 kB / 0.5563 GB, free: 16.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.055e-05/0.6008, allocations: 43.52 kB / 0.5563 GB, free: 16.08 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.6009, allocations: 322.1 kB / 0.5566 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.6012, allocations: 99.95 kB / 0.5567 GB, free: 15.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.6015, allocations: 103.5 kB / 0.5568 GB, free: 15.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004998/0.602, allocations: 232.1 kB / 0.557 GB, free: 15.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.602, allocations: 0 / 0.557 GB, free: 15.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006212/0.6026, allocations: 284.2 kB / 0.5573 GB, free: 15.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.6026, allocations: 5.875 kB / 0.5573 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.6026, allocations: 0 / 0.5573 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.6026, allocations: 7.281 kB / 0.5573 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004174/0.603, allocations: 55 kB / 0.5574 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.603, allocations: 1 kB / 0.5574 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.6033, allocations: 15.83 kB / 0.5574 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.752e-05/0.6033, allocations: 18.69 kB / 0.5574 GB, free: 15.71 MB / 462.1 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 0.000122/0.6035, allocations: 119.6 kB / 0.5575 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.6035, allocations: 9.234 kB / 0.5575 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008028/0.6043, allocations: 367.8 kB / 0.5579 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.6043, allocations: 3.094 kB / 0.5579 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.6043, allocations: 3.156 kB / 0.5579 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.6043, allocations: 0.7812 kB / 0.5579 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.6056, allocations: 0.6634 MB / 0.5585 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.6056, allocations: 0.875 kB / 0.5585 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.606, allocations: 63.19 kB / 0.5586 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.606, allocations: 2.719 kB / 0.5586 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.606, allocations: 9.531 kB / 0.5586 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.606, allocations: 3.625 kB / 0.5586 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.606, allocations: 7.297 kB / 0.5586 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.6067, allocations: 404.8 kB / 0.559 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.824e-05/0.6067, allocations: 17.03 kB / 0.559 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.6067, allocations: 8.484 kB / 0.559 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.607, allocations: 16.2 kB / 0.559 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.6071, allocations: 28.36 kB / 0.5591 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.6071, allocations: 16.62 kB / 0.5591 GB, free: 15.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.491e-05/0.6072, allocations: 84.39 kB / 0.5592 GB, free: 14.95 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6072, allocations: 0.6562 kB / 0.5592 GB, free: 14.95 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.6075, allocations: 53.97 kB / 0.5592 GB, free: 14.95 MB / 462.1 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.001084/0.6086, allocations: 0.9659 MB / 0.5602 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006489/0.6092, allocations: 243.9 kB / 0.5604 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.6092, allocations: 0.9062 kB / 0.5604 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.6095, allocations: 132 kB / 0.5605 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.6101, allocations: 58.78 kB / 0.5606 GB, free: 14.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.6131, allocations: 2.112 MB / 0.5626 GB, free: 12.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.297e-05/0.6132, allocations: 90.28 kB / 0.5627 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.6135, allocations: 63.69 kB / 0.5628 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.6137, allocations: 48.95 kB / 0.5628 GB, free: 12.84 MB / 462.1 MB Notification: Performance of SimCode: time 2.81e-07/0.6137, allocations: 0 / 0.5628 GB, free: 12.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02572/0.6394, allocations: 6.296 MB / 0.569 GB, free: 12.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.62, allocations: 10.58 kB / 0.569 GB, free: 12.01 MB / 462.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 14.007002017926425]