Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001715, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.383/1.383, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 67.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2465, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002965/0.2495, allocations: 1.707 MB / 410.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.2505, allocations: 0.5415 MB / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.2506, allocations: 0 / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.2508, allocations: 19.86 kB / 411.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.2509, allocations: 19.8 kB / 411.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.2512, allocations: 63.8 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.2514, allocations: 99.69 kB / 411.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.2515, allocations: 33.09 kB / 411.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.2516, allocations: 51.77 kB / 411.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.443e-05/0.2517, allocations: 47.78 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.2518, allocations: 4 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.953e-05/0.2518, allocations: 8 kB / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.583e-05/0.2519, allocations: 19.92 kB / 411.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.207e-05/0.2519, allocations: 43.73 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.2521, allocations: 94.59 kB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2521, allocations: 4 kB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2521, allocations: 0 / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.2521, allocations: 0 / 411.8 MB, free: 14.62 MB / 334.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.0005809/0.2527, allocations: 415 kB / 412.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2528, allocations: 8.031 kB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.25e-05/0.2528, allocations: 42.73 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.253, allocations: 20.84 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002916/0.2533, allocations: 208.7 kB / 412.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.2533, allocations: 4.375 kB / 412.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.2533, allocations: 15.94 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.2535, allocations: 88.48 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.2535, allocations: 0 / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-06/0.2535, allocations: 0 / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.2536, allocations: 0 / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.2537, allocations: 43.97 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005589/0.2542, allocations: 411.9 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.2544, allocations: 62.53 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.484e-05/0.2545, allocations: 32.89 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.2545, allocations: 0 / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.2545, allocations: 34.55 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.2546, allocations: 0 / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003058/0.2549, allocations: 101.6 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.2549, allocations: 59.28 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.2551, allocations: 149.6 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.2551, allocations: 25.7 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/0.2552, allocations: 104.1 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.2552, allocations: 23.94 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.214e-05/0.2553, allocations: 17.72 kB / 413.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2554, allocations: 326.8 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.547e-05/0.2555, allocations: 23.98 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-05/0.2555, allocations: 15.98 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.2557, allocations: 48.84 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2557, allocations: 0 / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001792/0.2559, allocations: 89.52 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2559, allocations: 7.984 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.2559, allocations: 0 / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.2559, allocations: 4 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.2561, allocations: 43.97 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.2561, allocations: 0 / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.28e-05/0.2562, allocations: 4.203 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.2562, allocations: 4 kB / 414.2 MB, free: 11.99 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.104e-05/0.2563, allocations: 113.8 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.378e-05/0.2564, allocations: 11.89 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.596e-05/0.2564, allocations: 20.3 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2564, allocations: 4 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2564, allocations: 0 / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2564, allocations: 0 / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.2567, allocations: 197.6 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2567, allocations: 3.938 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.2568, allocations: 23.98 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2568, allocations: 0 / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.2568, allocations: 7.984 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2569, allocations: 7.875 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2569, allocations: 0 / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002981/0.2572, allocations: 203.5 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/0.2572, allocations: 96.89 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.2573, allocations: 4.031 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.041e-05/0.2573, allocations: 0 / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.2574, allocations: 11.92 kB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.2574, allocations: 0 / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.766e-05/0.2575, allocations: 110.5 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2575, allocations: 4.062 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.2577, allocations: 16 kB / 415 MB, free: 11.07 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005817/0.2583, allocations: 0.7319 MB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.2585, allocations: 48.05 kB / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2585, allocations: 0 / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.302e-05/0.2586, allocations: 31.92 kB / 415.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.2589, allocations: 15.98 kB / 415.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.2608, allocations: 1.582 MB / 417.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.2611, allocations: 0.7041 MB / 418.1 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.879e-05/0.2612, allocations: 7.938 kB / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.591e-05/0.2613, allocations: 31.42 kB / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2613, allocations: 0 / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02451/0.2858, allocations: 2.32 MB / 420.5 MB, free: 5.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.578/7.864, allocations: 11.7 kB / 420.5 MB, free: 5.543 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe 2>&1)