Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.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.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009553/0.0009553, allocations: 96.91 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 198 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002325/0.0002325, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1053, allocations: 51.5 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.2459/0.3513, allocations: 22.37 MB / 380.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006882/0.3582, allocations: 5.302 MB / 385.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005647/0.3588, allocations: 7.312 kB / 385.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.3598, allocations: 244.1 kB / 386.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009981/0.3608, allocations: 319.1 kB / 386.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005693/0.3665, allocations: 1.352 MB / 387.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001735/0.3683, allocations: 0.7003 MB / 388.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000357/0.3687, allocations: 117.1 kB / 388.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007821/0.3695, allocations: 356 kB / 388.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004107/0.3699, allocations: 237.9 kB / 389.2 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.983e-05/0.37, allocations: 26.19 kB / 389.2 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002558/0.3725, allocations: 0.7443 MB / 389.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.3727, allocations: 105.3 kB / 390 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.3729, allocations: 125.7 kB / 390.2 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00145/0.3744, allocations: 0.7524 MB / 390.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3744, allocations: 0 / 390.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.3744, allocations: 1.969 kB / 390.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.3744, allocations: 0 / 390.9 MB, free: 4.746 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001237/0.3757, allocations: 0.6798 MB / 391.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.777e-05/0.3757, allocations: 12.66 kB / 391.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.3759, allocations: 82.34 kB / 391.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007639/0.3766, allocations: 76.66 kB / 391.8 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.3771, allocations: 331 kB / 392.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.95e-05/0.3772, allocations: 28.38 kB / 392.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.877e-05/0.3773, allocations: 42.3 kB / 392.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007934/0.3781, allocations: 463.5 kB / 392.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.3781, allocations: 5 kB / 392.6 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.062e-05/0.3782, allocations: 17.34 kB / 392.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.3782, allocations: 10.12 kB / 392.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.3787, allocations: 304.4 kB / 392.9 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01318/0.3919, allocations: 6.728 MB / 399.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005328/0.3925, allocations: 269.3 kB / 399.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.4026, allocations: 3.885 MB / 403.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.829e-05/0.4027, allocations: 45.02 kB / 403.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.736e-06/0.4027, allocations: 0 / 403.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.01271/0.4154, allocations: 2.484 MB / 406.3 MB, free: 9.988 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.4155, allocations: 56.47 kB / 406.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005096/0.4161, allocations: 301.6 kB / 406.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/0.4161, allocations: 36.95 kB / 406.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.4163, allocations: 221.2 kB / 406.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.4165, allocations: 162.5 kB / 407.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.4165, allocations: 14.91 kB / 407.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4166, allocations: 350.9 kB / 407.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.4169, allocations: 156.9 kB / 407.6 MB, free: 8.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/0.4172, allocations: 266.6 kB / 407.9 MB, free: 8.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003063/0.4175, allocations: 197 kB / 408.1 MB, free: 8.586 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4175, allocations: 3.219 kB / 408.1 MB, free: 8.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009963/0.4185, allocations: 0.5861 MB / 408.7 MB, free: 8.262 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4185, allocations: 10.03 kB / 408.7 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.4186, allocations: 2.75 kB / 408.7 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006172/0.4247, allocations: 0.7658 MB / 409.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004109/0.4252, allocations: 107.8 kB / 409.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.4271, allocations: 2.479 MB / 412 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.4276, allocations: 35.95 kB / 412.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.4276, allocations: 28 kB / 412.1 MB, free: 5.031 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002807/0.4279, allocations: 177.6 kB / 412.3 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.657e-05/0.428, allocations: 39.53 kB / 412.3 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.4292, allocations: 0.8553 MB / 413.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.4292, allocations: 8 kB / 413.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.4292, allocations: 0 / 413.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009802/0.4302, allocations: 0.9611 MB / 414.1 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.4322, allocations: 1.492 MB / 415.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.4322, allocations: 0 / 415.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/0.4325, allocations: 71.91 kB / 415.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00323/0.4358, allocations: 0.6452 MB / 416.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/0.4358, allocations: 12 kB / 416.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009545/0.4368, allocations: 1.284 MB / 417.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.4368, allocations: 0 / 417.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.4384, allocations: 1.229 MB / 418.8 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.4386, allocations: 120.5 kB / 419 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.4387, allocations: 12 kB / 419 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002798/0.439, allocations: 27.83 kB / 419 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/0.439, allocations: 31.92 kB / 419 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-05/0.4391, allocations: 24.16 kB / 419.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002568/0.4393, allocations: 209.9 kB / 419.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4393, allocations: 0 / 419.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001056/0.4404, allocations: 235.9 kB / 419.5 MB, free: 13.33 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002477/0.4429, allocations: 2.01 MB / 421.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.4441, allocations: 0.6835 MB / 422.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.4441, allocations: 4 kB / 422.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000896/0.445, allocations: 432.2 kB / 422.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.4462, allocations: 226.9 kB / 422.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005539/0.4518, allocations: 5.275 MB / 428.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.4522, allocations: 0.8443 MB / 429 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003499/0.4526, allocations: 68.34 kB / 429 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.4528, allocations: 163.3 kB / 429.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4528, allocations: 0 / 429.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/0.4836, allocations: 16.06 MB / 445.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.4839, allocations: 204.5 kB / 445.4 MB, free: 3.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.463/2.947, allocations: 3.5 kB / 445.4 MB, free: 3.316 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat does not exist to compare? outputFormat=mat