Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 121.8 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.001279/0.001279, 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.387/1.387, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001917/0.001917, allocations: 67.83 kB / 358.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2394, allocations: 50.55 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.004356/0.2438, allocations: 3.205 MB / 412.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.2454, allocations: 0.8141 MB / 413.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/0.2456, allocations: 7.938 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.2458, allocations: 63.42 kB / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.246, allocations: 107 kB / 413.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.2463, allocations: 135.8 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004433/0.2468, allocations: 450.2 kB / 413.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002579/0.247, allocations: 155.8 kB / 414 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002568/0.2473, allocations: 171.4 kB / 414.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.2475, allocations: 183.2 kB / 414.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.845e-05/0.2476, allocations: 44 kB / 414.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.584e-05/0.2477, allocations: 44 kB / 414.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.538e-05/0.2478, allocations: 91.64 kB / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.248, allocations: 199.1 kB / 414.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005443/0.2485, allocations: 0.501 MB / 415.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2485, allocations: 0 / 415.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2486, allocations: 0 / 415.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.2486, allocations: 0 / 415.2 MB, free: 11.19 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00114/0.2497, allocations: 0.6739 MB / 415.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.2498, allocations: 12.03 kB / 415.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.205e-05/0.2498, allocations: 70.66 kB / 416 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.25, allocations: 48.7 kB / 416 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.2505, allocations: 319.7 kB / 416.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.2505, allocations: 25.03 kB / 416.4 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.2506, allocations: 28.38 kB / 416.4 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006337/0.2512, allocations: 349.2 kB / 416.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2512, allocations: 0 / 416.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.2513, allocations: 12 kB / 416.8 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.2513, allocations: 15.94 kB / 416.8 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005802/0.2519, allocations: 274.4 kB / 417 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.2539, allocations: 1.257 MB / 418.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006176/0.2545, allocations: 295.7 kB / 418.6 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.2547, allocations: 96.81 kB / 418.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.2548, allocations: 0 / 418.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.2548, allocations: 38.56 kB / 418.7 MB, free: 7.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.2548, allocations: 4 kB / 418.7 MB, free: 7.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.002078/0.2569, allocations: 0.6388 MB / 419.4 MB, free: 6.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/0.257, allocations: 63.33 kB / 419.4 MB, free: 6.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.2573, allocations: 295 kB / 419.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.2574, allocations: 33.7 kB / 419.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.2575, allocations: 216.3 kB / 420 MB, free: 6.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.2576, allocations: 55.53 kB / 420 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.528e-05/0.2577, allocations: 49.66 kB / 420.1 MB, free: 6.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2578, allocations: 342.8 kB / 420.4 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.258, allocations: 75.95 kB / 420.5 MB, free: 5.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.2583, allocations: 166.2 kB / 420.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004618/0.2588, allocations: 245.6 kB / 420.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2588, allocations: 0 / 420.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009856/0.2598, allocations: 406 kB / 421.3 MB, free: 4.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.2598, allocations: 16 kB / 421.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.2598, allocations: 0 / 421.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004219/0.2602, allocations: 104.7 kB / 421.4 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.2604, allocations: 43.92 kB / 421.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/0.2636, allocations: 2.17 MB / 423.6 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.2638, allocations: 43.83 kB / 423.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.2639, allocations: 15.94 kB / 423.7 MB, free: 2.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001776/0.264, allocations: 149.7 kB / 423.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.165e-05/0.2641, allocations: 27.84 kB / 423.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.604e-05/0.2642, allocations: 25.92 kB / 423.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2642, allocations: 3.938 kB / 423.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2642, allocations: 3.984 kB / 423.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2642, allocations: 0 / 423.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.2655, allocations: 0.7296 MB / 424.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2655, allocations: 0 / 424.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.399e-05/0.2656, allocations: 15.98 kB / 424.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003432/0.266, allocations: 104.7 kB / 424.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.266, allocations: 7.984 kB / 424.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002838/0.2688, allocations: 2.154 MB / 426.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2688, allocations: 3.938 kB / 426.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008813/0.2697, allocations: 412.5 kB / 427.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.2698, allocations: 108.9 kB / 427.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.2699, allocations: 4 kB / 427.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.2701, allocations: 23.98 kB / 427.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.2702, allocations: 15.92 kB / 427.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.2702, allocations: 4 kB / 427.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002369/0.2704, allocations: 213.9 kB / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2704, allocations: 0 / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004812/0.2709, allocations: 87.89 kB / 427.7 MB, free: 13.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (8): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00131/0.2722, allocations: 0.9461 MB / 428.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007666/0.273, allocations: 354.4 kB / 429 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.273, allocations: 0 / 429 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000366/0.2734, allocations: 223.1 kB / 429.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.2738, allocations: 44.86 kB / 429.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004932/0.2787, allocations: 3.161 MB / 432.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.2792, allocations: 0.7713 MB / 433.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.2793, allocations: 18.53 kB / 433.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.2795, allocations: 103.4 kB / 433.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2795, allocations: 0 / 433.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03229/0.3118, allocations: 6.639 MB / 440 MB, free: 1.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.97, allocations: 10.31 kB / 440 MB, free: 1.605 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1)