Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 86.44 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.796e-05/1.799e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09794, allocations: 50.42 MB / 387.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3275/0.4255, allocations: 76.25 MB / 463.8 MB, free: 2.492 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.4258, allocations: 63.97 kB / 463.9 MB, free: 2.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006742/0.4325, allocations: 2.267 MB / 466.1 MB, free: 172 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4326, allocations: 2.625 kB / 466.1 MB, free: 172 kB / 330.7 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.4326, allocations: 8 kB / 466.1 MB, free: 164 kB / 330.7 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.0004948/0.4331, allocations: 383 kB / 466.5 MB, free: 15.74 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.4331, allocations: 16.02 kB / 466.5 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.015e-05/0.4332, allocations: 19.77 kB / 466.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.4335, allocations: 199.5 kB / 466.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.4335, allocations: 0 / 466.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.4336, allocations: 8 kB / 466.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001004/0.4337, allocations: 31.88 kB / 466.8 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.4338, allocations: 71.58 kB / 466.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.4338, allocations: 0 / 466.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.4338, allocations: 7.953 kB / 466.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.4339, allocations: 0 / 466.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006716/0.4345, allocations: 384.5 kB / 467.2 MB, free: 14.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.4347, allocations: 50.64 kB / 467.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.504e-05/0.4347, allocations: 24.97 kB / 467.3 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.4347, allocations: 11.98 kB / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.4348, allocations: 30.56 kB / 467.3 MB, free: 14.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.4348, allocations: 0 / 467.3 MB, free: 14.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001923/0.435, allocations: 65.75 kB / 467.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.435, allocations: 59.41 kB / 467.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.4351, allocations: 124.1 kB / 467.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.4352, allocations: 25.7 kB / 467.6 MB, free: 14.49 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.4352, allocations: 112.3 kB / 467.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.4353, allocations: 15.81 kB / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.4353, allocations: 0 / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.4354, allocations: 322.8 kB / 468.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.901e-05/0.4355, allocations: 12 kB / 468.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.315e-05/0.4355, allocations: 12 kB / 468.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.385e-05/0.4355, allocations: 15.98 kB / 468.1 MB, free: 14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4355, allocations: 4 kB / 468.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001054/0.4356, allocations: 69.55 kB / 468.2 MB, free: 13.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.4357, allocations: 4 kB / 468.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4357, allocations: 8 kB / 468.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.4357, allocations: 3.938 kB / 468.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.4359, allocations: 39.97 kB / 468.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.436, allocations: 0 / 468.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.348e-05/0.436, allocations: 11.84 kB / 468.2 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.436, allocations: 4 kB / 468.2 MB, free: 13.85 MB / 346.7 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 () * 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 6.313e-05/0.4361, allocations: 101 kB / 468.3 MB, free: 13.74 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001101/0.4362, allocations: 73.55 kB / 468.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.4363, allocations: 7.906 kB / 468.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.752e-05/0.4363, allocations: 12.39 kB / 468.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.4363, allocations: 0 / 468.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4363, allocations: 4 kB / 468.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4363, allocations: 3.938 kB / 468.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.4365, allocations: 166.2 kB / 468.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4365, allocations: 3.984 kB / 468.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.4367, allocations: 23.94 kB / 468.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4367, allocations: 0 / 468.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.4367, allocations: 11.94 kB / 468.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4367, allocations: 0 / 468.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.4367, allocations: 0 / 468.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.4369, allocations: 183.6 kB / 468.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.737e-05/0.437, allocations: 85.05 kB / 468.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.437, allocations: 3.953 kB / 468.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.113e-05/0.4371, allocations: 4 kB / 468.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.4371, allocations: 11.98 kB / 468.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.4372, allocations: 8 kB / 468.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.747e-05/0.4372, allocations: 103.8 kB / 469 MB, free: 12.97 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.453e-06/0.4372, allocations: 0 / 469 MB, free: 12.97 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000245/0.4375, allocations: 23.78 kB / 469 MB, free: 12.95 MB / 346.7 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 () * 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.0004903/0.438, allocations: 0.7008 MB / 469.8 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001756/0.4382, allocations: 43.98 kB / 469.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4382, allocations: 0 / 469.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.341e-05/0.4382, allocations: 19.94 kB / 469.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.4385, allocations: 19.94 kB / 469.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006617/0.4392, allocations: 214.2 kB / 470 MB, free: 11.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002824/0.4394, allocations: 0.7119 MB / 470.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.575e-05/0.4395, allocations: 4 kB / 470.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.4396, allocations: 31.42 kB / 470.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4396, allocations: 0 / 470.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.4606, allocations: 1.63 MB / 472.4 MB, free: 9.496 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002748/0.4609, allocations: 130.5 kB / 472.5 MB, free: 9.301 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/2.062, allocations: 0 / 472.5 MB, free: 9.301 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat