Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001125/0.001125, allocations: 105.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2222/0.2222, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002579/0.002579, allocations: 77.38 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1361, allocations: 62.44 MB / 480.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4097/0.5459, allocations: 152.3 MB / 0.6176 GB, free: 10.95 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.5478, allocations: 1.055 MB / 0.6186 GB, free: 9.906 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.548, allocations: 0 / 0.6186 GB, free: 9.906 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003753/0.5485, allocations: 31.77 kB / 0.6186 GB, free: 9.875 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.5497, allocations: 282.7 kB / 0.6189 GB, free: 9.605 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.5503, allocations: 107.7 kB / 0.619 GB, free: 9.5 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.5507, allocations: 187.2 kB / 0.6192 GB, free: 9.316 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.463e-05/0.5508, allocations: 6.25 kB / 0.6192 GB, free: 9.312 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003129/0.5511, allocations: 99.56 kB / 0.6193 GB, free: 9.215 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.5513, allocations: 47.83 kB / 0.6193 GB, free: 9.168 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.5513, allocations: 8 kB / 0.6193 GB, free: 9.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007389/0.5521, allocations: 267.7 kB / 0.6196 GB, free: 8.898 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 8.417e-05/0.5521, allocations: 27.89 kB / 0.6196 GB, free: 8.871 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 8.673e-05/0.5522, allocations: 43.81 kB / 0.6197 GB, free: 8.828 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006656/0.5529, allocations: 287.3 kB / 0.6199 GB, free: 8.547 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.5529, allocations: 0 / 0.6199 GB, free: 8.547 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5529, allocations: 0 / 0.6199 GB, free: 8.547 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.553, allocations: 0 / 0.6199 GB, free: 8.547 MB / 462.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.0007091/0.5537, allocations: 407.9 kB / 0.6203 GB, free: 8.102 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.5537, allocations: 8.688 kB / 0.6203 GB, free: 8.094 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.5538, allocations: 42.73 kB / 0.6204 GB, free: 8.043 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002299/0.5561, allocations: 192.6 kB / 0.6205 GB, free: 7.855 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.5564, allocations: 215.8 kB / 0.6208 GB, free: 7.605 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.5565, allocations: 0 / 0.6208 GB, free: 7.605 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.5565, allocations: 12 kB / 0.6208 GB, free: 7.594 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005573/0.5571, allocations: 222.6 kB / 0.621 GB, free: 7.363 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.5571, allocations: 7.938 kB / 0.621 GB, free: 7.355 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.328e-05/0.5572, allocations: 4 kB / 0.621 GB, free: 7.352 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.5572, allocations: 7.938 kB / 0.621 GB, free: 7.344 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004714/0.5577, allocations: 171.8 kB / 0.6212 GB, free: 7.176 MB / 462.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.001335/0.559, allocations: 0.5765 MB / 0.6217 GB, free: 6.543 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.5594, allocations: 142 kB / 0.6219 GB, free: 6.398 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.5596, allocations: 72.83 kB / 0.6219 GB, free: 6.324 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.5596, allocations: 0 / 0.6219 GB, free: 6.324 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.5596, allocations: 34.56 kB / 0.622 GB, free: 6.281 MB / 462.1 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.5596, allocations: 4 kB / 0.622 GB, free: 6.277 MB / 462.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.00561/0.5653, allocations: 1.314 MB / 0.6232 GB, free: 4.875 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.5653, allocations: 55.41 kB / 0.6233 GB, free: 4.809 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.028e-05/0.5654, allocations: 109.8 kB / 0.6234 GB, free: 4.691 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.5654, allocations: 29.7 kB / 0.6234 GB, free: 4.656 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.131e-05/0.5655, allocations: 95.94 kB / 0.6235 GB, free: 4.559 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.547e-05/0.5656, allocations: 75.02 kB / 0.6236 GB, free: 4.484 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.524e-05/0.5657, allocations: 49.7 kB / 0.6236 GB, free: 4.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.5658, allocations: 318.8 kB / 0.6239 GB, free: 4.109 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.566, allocations: 75.83 kB / 0.624 GB, free: 4.035 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.5662, allocations: 112.7 kB / 0.6241 GB, free: 3.914 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.5665, allocations: 175.4 kB / 0.6243 GB, free: 3.73 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5665, allocations: 0 / 0.6243 GB, free: 3.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005102/0.567, allocations: 274 kB / 0.6246 GB, free: 3.457 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.5671, allocations: 6.656 kB / 0.6246 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5671, allocations: 0 / 0.6246 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001972/0.5673, allocations: 48.83 kB / 0.6246 GB, free: 3.402 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003248/0.5676, allocations: 51.91 kB / 0.6247 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000487/0.5681, allocations: 0.572 MB / 0.6252 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001854/0.5683, allocations: 4 kB / 0.6252 GB, free: 2.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/0.5684, allocations: 27.98 kB / 0.6252 GB, free: 2.723 MB / 462.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.0001372/0.5685, allocations: 121.8 kB / 0.6254 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.5686, allocations: 16.34 kB / 0.6254 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008408/0.5694, allocations: 351.1 kB / 0.6257 GB, free: 2.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.5695, allocations: 0 / 0.6257 GB, free: 2.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.5695, allocations: 7.984 kB / 0.6257 GB, free: 2.223 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.5695, allocations: 0 / 0.6257 GB, free: 2.223 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.5706, allocations: 0.6288 MB / 0.6263 GB, free: 1.527 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5706, allocations: 0 / 0.6263 GB, free: 1.527 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003616/0.5709, allocations: 63.95 kB / 0.6264 GB, free: 1.465 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.832e-05/0.571, allocations: 16.84 kB / 0.6264 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.5711, allocations: 15.98 kB / 0.6264 GB, free: 1.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.5724, allocations: 1.364 MB / 0.6278 GB, free: 15.93 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5724, allocations: 4.156 kB / 0.6278 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007342/0.5731, allocations: 434.5 kB / 0.6282 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.5732, allocations: 85.05 kB / 0.6283 GB, free: 15.37 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.5732, allocations: 8.047 kB / 0.6283 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.5735, allocations: 12 kB / 0.6283 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.5735, allocations: 27.91 kB / 0.6283 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-05/0.5736, allocations: 27.98 kB / 0.6283 GB, free: 15.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.789e-05/0.5737, allocations: 91.58 kB / 0.6284 GB, free: 15.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5737, allocations: 0 / 0.6284 GB, free: 15.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0004406/0.5741, allocations: 87.92 kB / 0.6285 GB, free: 15.12 MB / 478.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.001343/0.5755, allocations: 1.008 MB / 0.6295 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005528/0.576, allocations: 211.7 kB / 0.6297 GB, free: 13.86 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.5761, allocations: 4.188 kB / 0.6297 GB, free: 13.86 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000381/0.5764, allocations: 226.4 kB / 0.6299 GB, free: 13.62 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.5769, allocations: 36.81 kB / 0.6299 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.5797, allocations: 2.061 MB / 0.632 GB, free: 11.41 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.58, allocations: 0.7085 MB / 0.6326 GB, free: 10.68 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004456/0.5805, allocations: 73.78 kB / 0.6327 GB, free: 10.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.5807, allocations: 71.39 kB / 0.6328 GB, free: 10.54 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5807, allocations: 0 / 0.6328 GB, free: 10.54 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02965/0.6104, allocations: 7.259 MB / 0.6399 GB, free: 3.363 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.22, allocations: 14.64 kB / 0.6399 GB, free: 3.352 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.csv","/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_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches