Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.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.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",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.000923/0.0009228, allocations: 99.19 kB / 16.94 MB, free: 5.98 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.0009409/0.000941, allocations: 183.2 kB / 17.82 MB, free: 5.652 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.257/1.257, allocations: 205.4 MB / 224 MB, free: 13.02 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.0004547/0.0004548, allocations: 16.22 kB / 280.8 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07986/0.08032, allocations: 47.57 MB / 328.4 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001621/0.08199, allocations: 1.358 MB / 329.8 MB, free: 2.602 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006947/0.0827, allocations: 0.4923 MB / 330.3 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.153e-05/0.08278, allocations: 4 kB / 330.3 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.885e-05/0.08285, allocations: 11.92 kB / 330.3 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.083, allocations: 23.84 kB / 330.3 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001248/0.08313, allocations: 31.95 kB / 330.3 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.08326, allocations: 67.86 kB / 330.4 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.429e-05/0.08336, allocations: 25.09 kB / 330.4 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.993e-05/0.08344, allocations: 35.8 kB / 330.5 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.916e-05/0.08352, allocations: 39.77 kB / 330.5 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.08355, allocations: 4 kB / 330.5 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.635e-05/0.08357, allocations: 4 kB / 330.5 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.262e-05/0.08362, allocations: 15.92 kB / 330.5 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.604e-05/0.08366, allocations: 37.64 kB / 330.6 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 8.537e-05/0.08375, allocations: 60.09 kB / 330.6 MB, free: 1.742 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.08376, allocations: 4 kB / 330.6 MB, free: 1.738 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.08377, allocations: 0 / 330.6 MB, free: 1.738 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.08378, allocations: 0 / 330.6 MB, free: 1.738 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004816/0.08426, allocations: 391 kB / 331 MB, free: 1.309 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.08431, allocations: 12.03 kB / 331 MB, free: 1.297 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.719e-05/0.08436, allocations: 38.55 kB / 331 MB, free: 1.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.956e-05/0.0844, allocations: 23.75 kB / 331.1 MB, free: 1.227 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.0846, allocations: 199.3 kB / 331.3 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.08462, allocations: 8 kB / 331.3 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.08465, allocations: 4 kB / 331.3 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.08482, allocations: 77.66 kB / 331.4 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.08483, allocations: 0 / 331.4 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.08485, allocations: 7.984 kB / 331.4 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.08486, allocations: 4 kB / 331.4 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.08498, allocations: 43.97 kB / 331.4 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.08549, allocations: 408 kB / 331.8 MB, free: 392 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.08563, allocations: 70.53 kB / 331.9 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.08565, allocations: 0 / 331.9 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.08568, allocations: 30.56 kB / 331.9 MB, free: 272 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 7.61e-07/0.08569, allocations: 0 / 331.9 MB, free: 272 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002623/0.08595, allocations: 109.9 kB / 332 MB, free: 156 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.086, allocations: 55.41 kB / 332.1 MB, free: 88 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.08612, allocations: 146.3 kB / 332.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.08614, allocations: 25.7 kB / 332.2 MB, free: 15.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.302e-05/0.08621, allocations: 116.1 kB / 332.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.08624, allocations: 19.8 kB / 332.4 MB, free: 15.77 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.08625, allocations: 0 / 332.4 MB, free: 15.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.988e-05/0.08635, allocations: 322.8 kB / 332.7 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.611e-05/0.08641, allocations: 20 kB / 332.7 MB, free: 15.42 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.877e-05/0.08647, allocations: 23.98 kB / 332.7 MB, free: 15.4 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.507e-05/0.08654, allocations: 23.98 kB / 332.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.08655, allocations: 0 / 332.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001501/0.08671, allocations: 85.59 kB / 332.8 MB, free: 15.29 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.08673, allocations: 4 kB / 332.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.08674, allocations: 0 / 332.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.08676, allocations: 7.938 kB / 332.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.08697, allocations: 47.92 kB / 332.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.08699, allocations: 3.938 kB / 332.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.634e-05/0.08705, allocations: 15.83 kB / 332.9 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.08707, allocations: 0 / 332.9 MB, free: 15.21 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.18e-05/0.08716, allocations: 113.8 kB / 333 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.08719, allocations: 11.84 kB / 333 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.08723, allocations: 16.31 kB / 333 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.08724, allocations: 0 / 333 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.08725, allocations: 7.938 kB / 333.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.08726, allocations: 0 / 333.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.08744, allocations: 197.6 kB / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.08745, allocations: 0 / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.08759, allocations: 23.98 kB / 333.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.0876, allocations: 4 kB / 333.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.08762, allocations: 0 / 333.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.08762, allocations: 0 / 333.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.08763, allocations: 4 kB / 333.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.08789, allocations: 207.3 kB / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/0.08795, allocations: 89.05 kB / 333.6 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.08797, allocations: 0 / 333.6 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.85e-05/0.08806, allocations: 8.047 kB / 333.6 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.628e-05/0.0881, allocations: 4 kB / 333.6 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.972e-06/0.08811, allocations: 4 kB / 333.6 MB, free: 14.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.668e-05/0.08818, allocations: 112.5 kB / 333.7 MB, free: 14.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08819, allocations: 0 / 333.7 MB, free: 14.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002163/0.08841, allocations: 19.95 kB / 333.7 MB, free: 14.3 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * 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 (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004807/0.08889, allocations: 0.7475 MB / 334.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.08907, allocations: 51.97 kB / 334.5 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.08908, allocations: 0 / 334.5 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.934e-05/0.08914, allocations: 24.05 kB / 334.5 MB, free: 13.46 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.0894, allocations: 19.98 kB / 334.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.09047, allocations: 0.7211 MB / 335.3 MB, free: 12.67 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.09073, allocations: 0.7082 MB / 336 MB, free: 11.94 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.972e-05/0.09078, allocations: 7.984 kB / 336 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.275e-05/0.09084, allocations: 31.42 kB / 336 MB, free: 11.9 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09084, allocations: 3.938 kB / 336 MB, free: 11.89 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01148/0.1023, allocations: 1.968 MB / 338 MB, free: 9.941 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.1025, allocations: 160.2 kB / 338.2 MB, free: 9.707 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.626/1.729, allocations: 0 / 338.2 MB, free: 9.707 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat