Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",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.00126/0.00126, allocations: 105 kB / 17.21 MB, free: 6.273 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.001065/0.001065, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 241.8 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2305/0.2305, allocations: 44.17 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 64.11 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1407, allocations: 60.83 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4959/0.6367, allocations: 147.1 MB / 0.6013 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.6385, allocations: 1.007 MB / 0.6023 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.6386, allocations: 0 / 0.6023 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003062/0.6389, allocations: 29.77 kB / 0.6023 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008899/0.6399, allocations: 209.9 kB / 0.6025 GB, free: 12.75 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.6403, allocations: 100.7 kB / 0.6026 GB, free: 12.66 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.6407, allocations: 215.2 kB / 0.6028 GB, free: 12.45 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.884e-05/0.6408, allocations: 14.22 kB / 0.6029 GB, free: 12.43 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002819/0.6411, allocations: 79.66 kB / 0.6029 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/0.6412, allocations: 59.81 kB / 0.603 GB, free: 12.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.6412, allocations: 5.219 kB / 0.603 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006354/0.6419, allocations: 259.7 kB / 0.6032 GB, free: 12.04 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.335e-05/0.642, allocations: 31.84 kB / 0.6033 GB, free: 12.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.082e-05/0.6421, allocations: 43.84 kB / 0.6033 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007506/0.6428, allocations: 279.3 kB / 0.6036 GB, free: 11.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.6428, allocations: 0 / 0.6036 GB, free: 11.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6428, allocations: 0 / 0.6036 GB, free: 11.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.6429, allocations: 4 kB / 0.6036 GB, free: 11.69 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006511/0.6435, allocations: 408.1 kB / 0.604 GB, free: 11.24 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.985e-05/0.6436, allocations: 12.03 kB / 0.604 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.998e-05/0.6436, allocations: 34.75 kB / 0.604 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002129/0.6458, allocations: 192.6 kB / 0.6042 GB, free: 11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.6461, allocations: 207.8 kB / 0.6044 GB, free: 10.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.6462, allocations: 10.53 kB / 0.6044 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.552e-05/0.6462, allocations: 12 kB / 0.6044 GB, free: 10.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.6468, allocations: 220.1 kB / 0.6046 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.6468, allocations: 3.938 kB / 0.6046 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.6469, allocations: 4 kB / 0.6046 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.6469, allocations: 4 kB / 0.6046 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004644/0.6474, allocations: 167.9 kB / 0.6048 GB, free: 10.33 MB / 446.1 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.001196/0.6486, allocations: 0.5757 MB / 0.6054 GB, free: 9.699 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000376/0.649, allocations: 134.5 kB / 0.6055 GB, free: 9.559 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.6491, allocations: 73.45 kB / 0.6056 GB, free: 9.484 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.6492, allocations: 0 / 0.6056 GB, free: 9.484 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.6492, allocations: 42.5 kB / 0.6056 GB, free: 9.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.6492, allocations: 0 / 0.6056 GB, free: 9.434 MB / 446.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.00563/0.6548, allocations: 1.304 MB / 0.6069 GB, free: 8.043 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.6549, allocations: 55.41 kB / 0.6069 GB, free: 7.977 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.655, allocations: 117.8 kB / 0.607 GB, free: 7.852 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.6551, allocations: 29.7 kB / 0.6071 GB, free: 7.816 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.6552, allocations: 95.94 kB / 0.6072 GB, free: 7.719 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.75e-05/0.6552, allocations: 67.05 kB / 0.6072 GB, free: 7.652 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.6553, allocations: 53.69 kB / 0.6073 GB, free: 7.594 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6555, allocations: 318.8 kB / 0.6076 GB, free: 7.273 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.6557, allocations: 71.91 kB / 0.6076 GB, free: 7.203 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.6559, allocations: 116.6 kB / 0.6078 GB, free: 7.082 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003539/0.6562, allocations: 182.3 kB / 0.6079 GB, free: 6.895 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.6562, allocations: 3.984 kB / 0.6079 GB, free: 6.891 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005276/0.6568, allocations: 262.2 kB / 0.6082 GB, free: 6.625 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.6568, allocations: 4 kB / 0.6082 GB, free: 6.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.6568, allocations: 0 / 0.6082 GB, free: 6.621 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.657, allocations: 48.83 kB / 0.6082 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003384/0.6574, allocations: 55.89 kB / 0.6083 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004702/0.6579, allocations: 0.5758 MB / 0.6089 GB, free: 5.914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001993/0.6581, allocations: 4.031 kB / 0.6089 GB, free: 5.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-05/0.6581, allocations: 24 kB / 0.6089 GB, free: 5.887 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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.0001552/0.6583, allocations: 127.5 kB / 0.609 GB, free: 5.754 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/0.6584, allocations: 7.906 kB / 0.609 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000877/0.6592, allocations: 343.4 kB / 0.6093 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.6593, allocations: 7.984 kB / 0.6093 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.6593, allocations: 0 / 0.6093 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.6593, allocations: 3.984 kB / 0.6093 GB, free: 5.387 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.6604, allocations: 0.6243 MB / 0.61 GB, free: 4.695 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.6604, allocations: 7.938 kB / 0.61 GB, free: 4.691 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003609/0.6607, allocations: 67.83 kB / 0.61 GB, free: 4.625 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.519e-05/0.6608, allocations: 16.84 kB / 0.61 GB, free: 4.605 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.6609, allocations: 15.98 kB / 0.6101 GB, free: 4.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009859/0.6619, allocations: 1.268 MB / 0.6113 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.6619, allocations: 4.031 kB / 0.6113 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007768/0.6627, allocations: 437.8 kB / 0.6117 GB, free: 2.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.848e-05/0.6627, allocations: 88.98 kB / 0.6118 GB, free: 2.625 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.889e-05/0.6628, allocations: 8 kB / 0.6118 GB, free: 2.617 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.663, allocations: 4 kB / 0.6118 GB, free: 2.613 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.6631, allocations: 28.03 kB / 0.6118 GB, free: 2.586 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.6631, allocations: 27.98 kB / 0.6119 GB, free: 2.559 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.24e-05/0.6632, allocations: 87.27 kB / 0.612 GB, free: 2.473 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6632, allocations: 0 / 0.612 GB, free: 2.473 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000509/0.6637, allocations: 83.94 kB / 0.612 GB, free: 2.391 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001393/0.6651, allocations: 1.001 MB / 0.613 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000525/0.6657, allocations: 206.4 kB / 0.6132 GB, free: 1.152 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6657, allocations: 0 / 0.6132 GB, free: 1.152 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.6661, allocations: 223 kB / 0.6134 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.6665, allocations: 52.59 kB / 0.6135 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002968/0.6695, allocations: 2.11 MB / 0.6155 GB, free: 14.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.6699, allocations: 0.701 MB / 0.6162 GB, free: 13.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004747/0.6704, allocations: 81.38 kB / 0.6163 GB, free: 13.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.6707, allocations: 63.41 kB / 0.6164 GB, free: 13.78 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6707, allocations: 0 / 0.6164 GB, free: 13.78 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.6946, allocations: 6.996 MB / 0.6232 GB, free: 6.906 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003172/0.695, allocations: 223.3 kB / 0.6234 GB, free: 6.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.609, allocations: 3.938 kB / 0.6234 GB, free: 6.648 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches