Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.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) 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.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 92.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002556, allocations: 4 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1131, allocations: 51.48 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.2525/0.3656, allocations: 16.4 MB / 374.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005774/0.3714, allocations: 4.759 MB / 379.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003551/0.3718, allocations: 5.562 kB / 379.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007165/0.3726, allocations: 176.8 kB / 379.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005716/0.3731, allocations: 227.7 kB / 379.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004176/0.3773, allocations: 1.196 MB / 380.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008404/0.3782, allocations: 0.4926 MB / 381.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.3784, allocations: 74.27 kB / 381.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01058/0.389, allocations: 7.229 MB / 388.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002872/0.3893, allocations: 171.1 kB / 388.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.3893, allocations: 17.97 kB / 388.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.3911, allocations: 0.7229 MB / 389.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.3912, allocations: 72.47 kB / 389.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.3913, allocations: 96.27 kB / 389.8 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.3924, allocations: 0.5981 MB / 390.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3925, allocations: 0 / 390.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3925, allocations: 5.219 kB / 390.4 MB, free: 8.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.3925, allocations: 0 / 390.4 MB, free: 8.535 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001114/0.3936, allocations: 0.5904 MB / 391 MB, free: 8.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3937, allocations: 8.75 kB / 391 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.411e-05/0.3938, allocations: 66.69 kB / 391.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008554/0.3947, allocations: 63.67 kB / 391.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004422/0.3951, allocations: 271.7 kB / 391.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.3952, allocations: 23.08 kB / 391.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.3952, allocations: 26.62 kB / 391.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006647/0.3959, allocations: 337.2 kB / 391.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.3959, allocations: 0.8438 kB / 391.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.255e-05/0.396, allocations: 11.34 kB / 391.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.396, allocations: 10.05 kB / 391.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003381/0.3963, allocations: 204.9 kB / 392 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.4085, allocations: 5.915 MB / 397.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.4088, allocations: 180.5 kB / 398.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009427/0.4183, allocations: 3.883 MB / 402 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.4183, allocations: 42.75 kB / 402 MB, free: 15.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.836e-06/0.4183, allocations: 0 / 402 MB, free: 15.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.006626/0.425, allocations: 1.417 MB / 403.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.4251, allocations: 55.41 kB / 403.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.4253, allocations: 250.6 kB / 403.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.4254, allocations: 33.7 kB / 403.8 MB, free: 13.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.4255, allocations: 194.8 kB / 403.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.4256, allocations: 94.64 kB / 404 MB, free: 13.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.584e-05/0.4256, allocations: 8 kB / 404.1 MB, free: 13.21 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4258, allocations: 342.7 kB / 404.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.4259, allocations: 91.97 kB / 404.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.4261, allocations: 183 kB / 404.7 MB, free: 12.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.4263, allocations: 120.5 kB / 404.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.4263, allocations: 7.938 kB / 404.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006996/0.4271, allocations: 383.1 kB / 405.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.4271, allocations: 8.062 kB / 405.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4271, allocations: 4 kB / 405.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003215/0.4303, allocations: 404.1 kB / 405.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.4306, allocations: 75.84 kB / 405.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.4321, allocations: 1.884 MB / 407.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.4324, allocations: 16.88 kB / 407.5 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.4324, allocations: 19.98 kB / 407.6 MB, free: 9.488 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001798/0.4326, allocations: 159.1 kB / 407.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.4327, allocations: 35.58 kB / 407.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007482/0.4334, allocations: 482.2 kB / 408.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4335, allocations: 8 kB / 408.2 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.4335, allocations: 4 kB / 408.2 MB, free: 8.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006167/0.4341, allocations: 0.7202 MB / 408.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.4353, allocations: 0.9424 MB / 409.9 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.311e-06/0.4353, allocations: 0.875 kB / 409.9 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000247/0.4356, allocations: 47.91 kB / 409.9 MB, free: 6.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/0.4374, allocations: 332.4 kB / 410.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.4374, allocations: 4 kB / 410.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005224/0.4379, allocations: 0.6344 MB / 410.9 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4379, allocations: 12.02 kB / 410.9 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008372/0.4388, allocations: 0.7302 MB / 411.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.4389, allocations: 108.7 kB / 411.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.409e-05/0.439, allocations: 7.953 kB / 411.8 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.4392, allocations: 20.05 kB / 411.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.81e-05/0.4392, allocations: 15.92 kB / 411.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.4392, allocations: 15.98 kB / 411.8 MB, free: 4.988 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001617/0.4394, allocations: 182 kB / 412 MB, free: 4.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4394, allocations: 0 / 412 MB, free: 4.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008873/0.4403, allocations: 187.9 kB / 412.2 MB, free: 4.629 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001592/0.4419, allocations: 1.514 MB / 413.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007623/0.4427, allocations: 442.2 kB / 414.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4427, allocations: 0 / 414.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.4431, allocations: 237 kB / 414.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009012/0.444, allocations: 171.9 kB / 414.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/0.4474, allocations: 3.845 MB / 418.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.4477, allocations: 0.788 MB / 419.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002029/0.4479, allocations: 54.92 kB / 419.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.448, allocations: 99.41 kB / 419.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4481, allocations: 4 kB / 419.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0705/0.5186, allocations: 12.51 MB / 431.8 MB, free: 1 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002467/0.5189, allocations: 207 kB / 432 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/2.914, allocations: 4 kB / 432 MB, free: 0.7539 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat does not exist to compare? outputFormat=mat