Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 203.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 227.2 MB / 245 MB, free: 7.629 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007694/0.0007694, allocations: 107.1 kB / 297.3 MB, free: 6.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002063/0.0002063, allocations: 8 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1756, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08067/0.2563, allocations: 77.8 MB / 487.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001523/0.2565, allocations: 68.5 kB / 487.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006511/0.263, allocations: 2.382 MB / 489.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.263, allocations: 0 / 489.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.2631, allocations: 4.219 kB / 489.7 MB, free: 10.34 MB / 362.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.0004408/0.2635, allocations: 414.8 kB / 490.1 MB, free: 9.891 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.2636, allocations: 8.031 kB / 490.2 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.2636, allocations: 38.56 kB / 490.2 MB, free: 9.836 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.2637, allocations: 27.8 kB / 490.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.264, allocations: 198.6 kB / 490.4 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.264, allocations: 11.94 kB / 490.4 MB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.264, allocations: 11.94 kB / 490.4 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.2642, allocations: 77.61 kB / 490.5 MB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2642, allocations: 7.984 kB / 490.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.2642, allocations: 4 kB / 490.5 MB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.2642, allocations: 0 / 490.5 MB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.2643, allocations: 47.97 kB / 490.6 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005042/0.2648, allocations: 411.9 kB / 491 MB, free: 8.945 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.265, allocations: 66.59 kB / 491 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.265, allocations: 0 / 491 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.265, allocations: 30.56 kB / 491.1 MB, free: 8.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 9.61e-07/0.265, allocations: 0 / 491.1 MB, free: 8.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002657/0.2653, allocations: 109.7 kB / 491.2 MB, free: 8.719 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.2654, allocations: 55.41 kB / 491.2 MB, free: 8.652 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.132e-05/0.2655, allocations: 133.4 kB / 491.4 MB, free: 8.516 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.2655, allocations: 25.7 kB / 491.4 MB, free: 8.484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.782e-05/0.2655, allocations: 108.1 kB / 491.5 MB, free: 8.375 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.2656, allocations: 19.89 kB / 491.5 MB, free: 8.355 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.2656, allocations: 0 / 491.5 MB, free: 8.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.521e-05/0.2657, allocations: 322.8 kB / 491.8 MB, free: 8.031 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.773e-05/0.2657, allocations: 27.92 kB / 491.9 MB, free: 8.004 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.856e-05/0.2658, allocations: 20 kB / 491.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.035e-05/0.2658, allocations: 23.98 kB / 491.9 MB, free: 7.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2659, allocations: 0 / 491.9 MB, free: 7.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001579/0.266, allocations: 89.53 kB / 492 MB, free: 7.867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.266, allocations: 11.98 kB / 492 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2661, allocations: 0 / 492 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/0.2661, allocations: 0 / 492 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.2663, allocations: 39.97 kB / 492 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.2663, allocations: 0 / 492 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.405e-05/0.2664, allocations: 8.156 kB / 492 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.2664, allocations: 7.953 kB / 492 MB, free: 7.801 MB / 362.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 7.237e-05/0.2665, allocations: 117.8 kB / 492.2 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.012e-05/0.2665, allocations: 11.91 kB / 492.2 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.946e-05/0.2665, allocations: 16.3 kB / 492.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2665, allocations: 0 / 492.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.2665, allocations: 0 / 492.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.2665, allocations: 0 / 492.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.2667, allocations: 201.6 kB / 492.4 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2667, allocations: 3.938 kB / 492.4 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.2669, allocations: 19.98 kB / 492.4 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2669, allocations: 4 kB / 492.4 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.2669, allocations: 4 kB / 492.4 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2669, allocations: 0 / 492.4 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2669, allocations: 3.984 kB / 492.4 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.2672, allocations: 203.4 kB / 492.6 MB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/0.2672, allocations: 92.97 kB / 492.7 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.2673, allocations: 8.062 kB / 492.7 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.289e-05/0.2674, allocations: 4 kB / 492.7 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.676e-05/0.2674, allocations: 0 / 492.7 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.2674, allocations: 7.984 kB / 492.7 MB, free: 7.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.065e-05/0.2675, allocations: 106.6 kB / 492.8 MB, free: 6.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2675, allocations: 3.938 kB / 492.8 MB, free: 6.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.2677, allocations: 12 kB / 492.9 MB, free: 6.902 MB / 362.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.0004617/0.2682, allocations: 0.7512 MB / 493.6 MB, free: 6.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001488/0.2683, allocations: 55.91 kB / 493.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.2683, allocations: 4.062 kB / 493.7 MB, free: 6.066 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.95e-05/0.2684, allocations: 23.98 kB / 493.7 MB, free: 6.043 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002062/0.2686, allocations: 20.22 kB / 493.7 MB, free: 6.023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.2697, allocations: 0.7069 MB / 494.4 MB, free: 5.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.2699, allocations: 0.7082 MB / 495.1 MB, free: 4.535 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.091e-05/0.27, allocations: 4 kB / 495.1 MB, free: 4.531 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.967e-05/0.27, allocations: 27.42 kB / 495.1 MB, free: 4.504 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.27, allocations: 0 / 495.1 MB, free: 4.504 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01175/0.2818, allocations: 1.969 MB / 497.1 MB, free: 2.648 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/0.282, allocations: 174.9 kB / 497.3 MB, free: 2.402 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.433/1.715, allocations: 0 / 497.3 MB, free: 2.402 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat