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.001335/0.001335, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000971/0.000971, allocations: 92.69 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000304/0.000304, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2361, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09385/0.33, allocations: 76.98 MB / 478.6 MB, free: 3.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.3303, allocations: 64.5 kB / 478.6 MB, free: 3.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006473/0.3368, allocations: 2.284 MB / 480.9 MB, free: 1.141 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3368, allocations: 0 / 480.9 MB, free: 1.141 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.3369, allocations: 4 kB / 480.9 MB, free: 1.137 MB / 346.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.0004961/0.3374, allocations: 406.9 kB / 481.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3374, allocations: 8.031 kB / 481.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.363e-05/0.3375, allocations: 42.52 kB / 481.4 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.3375, allocations: 12.03 kB / 481.4 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.3378, allocations: 222.5 kB / 481.6 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.3378, allocations: 0 / 481.6 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.3378, allocations: 12 kB / 481.6 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.338, allocations: 81.31 kB / 481.7 MB, free: 276 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.338, allocations: 0 / 481.7 MB, free: 276 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.338, allocations: 0 / 481.7 MB, free: 276 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.338, allocations: 7.953 kB / 481.7 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/0.3382, allocations: 51.91 kB / 481.7 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.3388, allocations: 400 kB / 482.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.3389, allocations: 66.53 kB / 482.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.339, allocations: 4.031 kB / 482.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.339, allocations: 38.69 kB / 482.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.339, allocations: 0 / 482.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002786/0.3393, allocations: 97.52 kB / 482.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.3393, allocations: 59.41 kB / 482.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.3394, allocations: 125.5 kB / 482.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.3395, allocations: 29.7 kB / 482.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.957e-05/0.3395, allocations: 112.2 kB / 482.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.3396, allocations: 15.73 kB / 482.7 MB, free: 15.17 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-06/0.3396, allocations: 4 kB / 482.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3397, allocations: 314.8 kB / 483 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.247e-05/0.3397, allocations: 27.98 kB / 483 MB, free: 14.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.537e-05/0.3398, allocations: 23.97 kB / 483 MB, free: 14.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.044e-05/0.3399, allocations: 24 kB / 483 MB, free: 14.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3399, allocations: 3.953 kB / 483 MB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001682/0.3401, allocations: 89.58 kB / 483.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3401, allocations: 4 kB / 483.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3401, allocations: 7.938 kB / 483.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.3401, allocations: 4 kB / 483.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.3404, allocations: 35.97 kB / 483.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.3404, allocations: 0 / 483.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.43e-05/0.3405, allocations: 4 kB / 483.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.3405, allocations: 0 / 483.2 MB, free: 14.62 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 8.17e-05/0.3406, allocations: 125.8 kB / 483.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.3406, allocations: 11.86 kB / 483.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.3406, allocations: 20.25 kB / 483.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3406, allocations: 3.984 kB / 483.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3407, allocations: 0 / 483.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3407, allocations: 4 kB / 483.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.3409, allocations: 197.5 kB / 483.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3409, allocations: 256 / 483.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.341, allocations: 27.92 kB / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.341, allocations: 4 kB / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.3411, allocations: 0 / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.3411, allocations: 4 kB / 483.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3411, allocations: 7.938 kB / 483.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002802/0.3414, allocations: 203.4 kB / 483.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.872e-05/0.3414, allocations: 81.02 kB / 483.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.3414, allocations: 7.984 kB / 483.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.263e-05/0.3415, allocations: 4.062 kB / 483.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.3416, allocations: 7.984 kB / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.3416, allocations: 0 / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.543e-05/0.3417, allocations: 113.7 kB / 484 MB, free: 13.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3417, allocations: 0 / 484 MB, free: 13.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.3419, allocations: 16 kB / 484 MB, free: 13.71 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.0005214/0.3424, allocations: 0.7399 MB / 484.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001558/0.3426, allocations: 51.97 kB / 484.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3426, allocations: 0 / 484.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.411e-05/0.3427, allocations: 35.92 kB / 484.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002245/0.3429, allocations: 22.86 kB / 484.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.3441, allocations: 0.7185 MB / 485.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.3444, allocations: 0.7082 MB / 486.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.182e-05/0.3444, allocations: 8.234 kB / 486.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.371e-05/0.3445, allocations: 27.44 kB / 486.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of SimCode: time 4.1e-07/0.3445, allocations: 0 / 486.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01207/0.3566, allocations: 1.965 MB / 488.3 MB, free: 9.441 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.3568, allocations: 177.2 kB / 488.5 MB, free: 9.191 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/1.986, allocations: 0 / 488.5 MB, free: 9.191 MB / 362.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