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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009468/0.0009467, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.4 MB / 223.1 MB, free: 9.043 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008003/0.0008005, allocations: 111.7 kB / 271.5 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003003, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2262, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08933/0.3156, allocations: 76.21 MB / 452.1 MB, free: 4.445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001715/0.3158, allocations: 63.97 kB / 452.2 MB, free: 4.383 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006171/0.322, allocations: 2.224 MB / 454.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.322, allocations: 0 / 454.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.322, allocations: 4 kB / 454.4 MB, free: 2.148 MB / 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.0005414/0.3226, allocations: 414.8 kB / 454.8 MB, free: 1.695 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.3226, allocations: 8.031 kB / 454.8 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.161e-05/0.3227, allocations: 34.56 kB / 454.8 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.133e-05/0.3228, allocations: 15.81 kB / 454.9 MB, free: 1.629 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.323, allocations: 207.9 kB / 455.1 MB, free: 1.383 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.3231, allocations: 12 kB / 455.1 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.3231, allocations: 15.89 kB / 455.1 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.3233, allocations: 77.66 kB / 455.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3233, allocations: 0 / 455.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.3233, allocations: 4 kB / 455.2 MB, free: 1.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.3233, allocations: 4 kB / 455.2 MB, free: 1.266 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.3235, allocations: 39.97 kB / 455.2 MB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005806/0.3241, allocations: 412 kB / 455.6 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.3242, allocations: 66.64 kB / 455.7 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.3242, allocations: 3.984 kB / 455.7 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.3243, allocations: 34.72 kB / 455.7 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 2.906e-06/0.3243, allocations: 4 kB / 455.7 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.00028/0.3246, allocations: 97.64 kB / 455.8 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.3246, allocations: 59.41 kB / 455.9 MB, free: 476 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.3247, allocations: 137 kB / 456 MB, free: 336 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.3248, allocations: 25.7 kB / 456 MB, free: 304 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.795e-05/0.3248, allocations: 112.3 kB / 456.1 MB, free: 188 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.3249, allocations: 19.73 kB / 456.2 MB, free: 168 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.3249, allocations: 0 / 456.2 MB, free: 168 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3251, allocations: 318.8 kB / 456.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.526e-05/0.3251, allocations: 19.98 kB / 456.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.109e-05/0.3252, allocations: 31.92 kB / 456.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.685e-05/0.3253, allocations: 23.98 kB / 456.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3253, allocations: 0 / 456.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000181/0.3255, allocations: 89.73 kB / 456.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3255, allocations: 4 kB / 456.6 MB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.3255, allocations: 80 / 456.6 MB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.3255, allocations: 4 kB / 456.6 MB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.3258, allocations: 39.97 kB / 456.7 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.3258, allocations: 3.984 kB / 456.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.625e-05/0.3259, allocations: 7.906 kB / 456.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.3259, allocations: 11.94 kB / 456.7 MB, free: 15.61 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 () * 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 8.977e-05/0.326, allocations: 117.8 kB / 456.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.07e-05/0.326, allocations: 7.906 kB / 456.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.3261, allocations: 12.31 kB / 456.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3261, allocations: 4 kB / 456.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3261, allocations: 0 / 456.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3261, allocations: 7.938 kB / 456.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.3263, allocations: 197.5 kB / 457 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3263, allocations: 4 kB / 457 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.3265, allocations: 23.97 kB / 457.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3265, allocations: 0 / 457.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.3265, allocations: 0 / 457.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3265, allocations: 0 / 457.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3265, allocations: 0 / 457.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002833/0.3268, allocations: 219.6 kB / 457.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.3268, allocations: 84.95 kB / 457.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.3269, allocations: 4.031 kB / 457.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.153e-05/0.327, allocations: 7.938 kB / 457.4 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.327, allocations: 12.05 kB / 457.4 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.327, allocations: 0 / 457.4 MB, free: 14.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.253e-05/0.3271, allocations: 107.8 kB / 457.5 MB, free: 14.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3271, allocations: 0 / 457.5 MB, free: 14.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002265/0.3273, allocations: 16 kB / 457.5 MB, free: 14.71 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 () * 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.0005292/0.3279, allocations: 0.7435 MB / 458.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001609/0.328, allocations: 47.92 kB / 458.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.328, allocations: 4 kB / 458.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.334e-05/0.3281, allocations: 27.98 kB / 458.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.3284, allocations: 26.48 kB / 458.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.3296, allocations: 0.7056 MB / 459.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.3298, allocations: 0.7082 MB / 459.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.016e-05/0.3299, allocations: 11.97 kB / 459.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.257e-05/0.3299, allocations: 27.44 kB / 459.8 MB, free: 12.31 MB / 346.7 MB Notification: Performance of SimCode: time 4.328e-06/0.3299, allocations: 0 / 459.8 MB, free: 12.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/0.3439, allocations: 1.99 MB / 461.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.3442, allocations: 157.6 kB / 461.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.404/1.748, allocations: 0 / 461.9 MB, free: 10.12 MB / 346.7 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) 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