Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.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 3.2.3+maint.om/package.mo", uses=false) 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 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(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_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.0009715/0.0009716, allocations: 93.34 kB / 16.95 MB, free: 6.887 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.001119/0.001119, allocations: 186.9 kB / 17.84 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.64/1.64, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000516/0.0005163, allocations: 12.78 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1095, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.4349/0.5445, allocations: 136.6 MB / 465 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.5458, allocations: 0.9113 MB / 465.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.697e-05/0.5459, allocations: 0 / 465.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.5462, allocations: 23.83 kB / 465.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005804/0.5468, allocations: 200.1 kB / 466.1 MB, free: 432 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003639/0.5472, allocations: 93.88 kB / 466.2 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.5475, allocations: 183.2 kB / 466.4 MB, free: 156 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.258e-05/0.5476, allocations: 4 kB / 466.4 MB, free: 152 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.5478, allocations: 87.61 kB / 466.5 MB, free: 64 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.5479, allocations: 55.83 kB / 466.6 MB, free: 8 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.5479, allocations: 4 kB / 466.6 MB, free: 4 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005675/0.5485, allocations: 265.2 kB / 466.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.5486, allocations: 15.92 kB / 466.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.5487, allocations: 45.64 kB / 466.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003814/0.5491, allocations: 205 kB / 467.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.5491, allocations: 3.938 kB / 467.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.5491, allocations: 0 / 467.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.5492, allocations: 0 / 467.1 MB, free: 15.48 MB / 366.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.0005631/0.5497, allocations: 388 kB / 467.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.5498, allocations: 8.031 kB / 467.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.16e-05/0.5498, allocations: 46.55 kB / 467.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/0.5517, allocations: 184.1 kB / 467.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.552, allocations: 207.4 kB / 467.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.552, allocations: 9.219 kB / 467.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.322e-05/0.5521, allocations: 7.906 kB / 467.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005123/0.5526, allocations: 232 kB / 468.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.5526, allocations: 0 / 468.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.5527, allocations: 0 / 468.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.5527, allocations: 4.875 kB / 468.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.5531, allocations: 171.8 kB / 468.3 MB, free: 14.14 MB / 366.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.001111/0.5542, allocations: 0.5803 MB / 468.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.5546, allocations: 146.4 kB / 469 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.5547, allocations: 68.81 kB / 469.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.5547, allocations: 11.94 kB / 469.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.5548, allocations: 38.55 kB / 469.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.5548, allocations: 0 / 469.2 MB, free: 13.21 MB / 366.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.004972/0.5598, allocations: 1.314 MB / 470.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.5598, allocations: 51.41 kB / 470.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.284e-05/0.5599, allocations: 117.8 kB / 470.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.56, allocations: 25.7 kB / 470.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.866e-05/0.56, allocations: 92.05 kB / 470.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.964e-05/0.5601, allocations: 67 kB / 470.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/0.5601, allocations: 4 kB / 470.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.5603, allocations: 322.8 kB / 471.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.5604, allocations: 71.97 kB / 471.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.5606, allocations: 95.58 kB / 471.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.5608, allocations: 84.81 kB / 471.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.5608, allocations: 4 kB / 471.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005725/0.5613, allocations: 259.4 kB / 471.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.5614, allocations: 4 kB / 471.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.5614, allocations: 0 / 471.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001761/0.5616, allocations: 48.83 kB / 471.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.5619, allocations: 51.91 kB / 471.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004242/0.5623, allocations: 0.5681 MB / 472.3 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.5625, allocations: 19.8 kB / 472.3 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.431e-05/0.5625, allocations: 23.98 kB / 472.3 MB, free: 9.84 MB / 366.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 (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.0001144/0.5627, allocations: 121.8 kB / 472.5 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.5627, allocations: 11.91 kB / 472.5 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009318/0.5637, allocations: 351.3 kB / 472.8 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.5637, allocations: 4 kB / 472.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.5637, allocations: 3.953 kB / 472.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.5637, allocations: 0 / 472.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009815/0.5647, allocations: 0.6235 MB / 473.5 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.5647, allocations: 0 / 473.5 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003151/0.565, allocations: 63.91 kB / 473.5 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.837e-05/0.5651, allocations: 20.78 kB / 473.5 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.5651, allocations: 12.75 kB / 473.5 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.5663, allocations: 1.276 MB / 474.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.5663, allocations: 7.938 kB / 474.8 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006784/0.567, allocations: 430.7 kB / 475.3 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.082e-05/0.567, allocations: 85.05 kB / 475.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.5671, allocations: 7.984 kB / 475.3 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.5673, allocations: 11.94 kB / 475.4 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.5673, allocations: 31.97 kB / 475.4 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.116e-05/0.5674, allocations: 27.98 kB / 475.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.498e-05/0.5674, allocations: 91.23 kB / 475.5 MB, free: 6.418 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5675, allocations: 0 / 475.5 MB, free: 6.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000447/0.5679, allocations: 75.94 kB / 475.6 MB, free: 6.344 MB / 366.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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001434/0.5693, allocations: 1.001 MB / 476.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000495/0.5699, allocations: 207.7 kB / 476.8 MB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5699, allocations: 0 / 476.8 MB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003528/0.5702, allocations: 222.9 kB / 477 MB, free: 4.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005935/0.5708, allocations: 43.95 kB / 477 MB, free: 4.828 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.5728, allocations: 1.101 MB / 478.1 MB, free: 3.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.5733, allocations: 0.7088 MB / 478.8 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004874/0.5738, allocations: 81.53 kB / 478.9 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.574, allocations: 71.39 kB / 479 MB, free: 2.777 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.574, allocations: 0 / 479 MB, free: 2.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.5972, allocations: 6.879 MB / 485.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001863/0.5974, allocations: 216 kB / 486.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.572, allocations: 3.938 kB / 486.1 MB, free: 11.65 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat does not exist to compare? outputFormat=mat