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.001112/0.001112, allocations: 97.66 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001529, allocations: 195 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002338, allocations: 8 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09344, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.198/0.2915, allocations: 34.63 MB / 392.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00579/0.2973, allocations: 4.293 MB / 397.2 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008083/0.2982, allocations: 8.188 kB / 397.2 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009175/0.2991, allocations: 226.3 kB / 397.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001234/0.3004, allocations: 460.3 kB / 397.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004088/0.3045, allocations: 1.288 MB / 399.2 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002314/0.3068, allocations: 1.618 MB / 400.8 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003351/0.3071, allocations: 113.6 kB / 400.9 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.3083, allocations: 411.7 kB / 401.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006527/0.309, allocations: 400.2 kB / 401.7 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.49e-05/0.3091, allocations: 21.31 kB / 401.7 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.311, allocations: 0.6949 MB / 402.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.3112, allocations: 105.1 kB / 402.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.3114, allocations: 133.9 kB / 402.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009328/0.3123, allocations: 0.7564 MB / 403.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3123, allocations: 0 / 403.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3123, allocations: 0 / 403.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.3124, allocations: 0 / 403.4 MB, free: 11.71 MB / 318.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.001038/0.3134, allocations: 0.6865 MB / 404.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3135, allocations: 9.625 kB / 404.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.988e-05/0.3136, allocations: 78.91 kB / 404.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005622/0.3141, allocations: 81.62 kB / 404.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.3146, allocations: 331.7 kB / 404.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.197e-05/0.3146, allocations: 28.44 kB / 404.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.026e-05/0.3147, allocations: 38 kB / 404.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.3154, allocations: 467.3 kB / 405.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.3155, allocations: 9.266 kB / 405.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.3155, allocations: 16.69 kB / 405.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.3155, allocations: 10.78 kB / 405.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004722/0.316, allocations: 308.1 kB / 405.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01262/0.3286, allocations: 6.733 MB / 412.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004955/0.3292, allocations: 274.6 kB / 412.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.3294, allocations: 149 kB / 412.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009366/0.3388, allocations: 3.877 MB / 416.5 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.3389, allocations: 38.42 kB / 416.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.3389, allocations: 0 / 416.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.01117/0.35, allocations: 2.487 MB / 419 MB, free: 14.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.3501, allocations: 59.41 kB / 419.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003753/0.3505, allocations: 299.3 kB / 419.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/0.3506, allocations: 37.7 kB / 419.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.3507, allocations: 220 kB / 419.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.3509, allocations: 169.5 kB / 419.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-05/0.3509, allocations: 12 kB / 419.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3511, allocations: 342.8 kB / 420.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/0.3513, allocations: 149.1 kB / 420.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003453/0.3517, allocations: 271.7 kB / 420.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.352, allocations: 200.7 kB / 420.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.352, allocations: 0 / 420.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001107/0.3531, allocations: 0.592 MB / 421.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3532, allocations: 8.094 kB / 421.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3532, allocations: 4 kB / 421.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005574/0.3588, allocations: 0.7635 MB / 422.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004416/0.3592, allocations: 107.8 kB / 422.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.3614, allocations: 2.471 MB / 424.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.3619, allocations: 39.95 kB / 424.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-05/0.362, allocations: 24 kB / 424.7 MB, free: 8.75 MB / 334.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.0002819/0.3622, allocations: 173.7 kB / 424.9 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.3623, allocations: 39.53 kB / 424.9 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.3636, allocations: 0.859 MB / 425.8 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.3637, allocations: 15.94 kB / 425.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3637, allocations: 0 / 425.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001033/0.3647, allocations: 0.9574 MB / 426.8 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.3669, allocations: 1.492 MB / 428.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.3669, allocations: 0 / 428.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003044/0.3672, allocations: 71.91 kB / 428.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00316/0.3704, allocations: 0.6411 MB / 429 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.628e-05/0.3704, allocations: 11.98 kB / 429 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.3715, allocations: 1.284 MB / 430.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3715, allocations: 0 / 430.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.3731, allocations: 1.227 MB / 431.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.3734, allocations: 120.5 kB / 431.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.891e-05/0.3735, allocations: 15.95 kB / 431.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/0.3738, allocations: 27.83 kB / 431.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.672e-05/0.3738, allocations: 27.97 kB / 431.7 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.3739, allocations: 19.98 kB / 431.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.3741, allocations: 209.9 kB / 431.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3742, allocations: 0 / 431.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009425/0.3751, allocations: 227.9 kB / 432.1 MB, free: 1.066 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.002533/0.3776, allocations: 1.935 MB / 434.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.3788, allocations: 0.6836 MB / 434.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3789, allocations: 3.938 kB / 434.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008575/0.3797, allocations: 432.3 kB / 435.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.381, allocations: 237.8 kB / 435.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/0.3857, allocations: 3.004 MB / 438.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004631/0.3861, allocations: 0.8288 MB / 439.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003628/0.3865, allocations: 76.27 kB / 439.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.3867, allocations: 159.4 kB / 439.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3867, allocations: 0 / 439.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.4219, allocations: 16.11 MB / 455.6 MB, free: 9.629 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.4222, allocations: 201.5 kB / 455.8 MB, free: 9.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.363/2.785, allocations: 0 / 455.8 MB, free: 9.395 MB / 366.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