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.InvertingAmplifier.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.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 121.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.001271/0.001271, allocations: 204.6 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.436/1.436, 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.001915/0.001915, allocations: 71.88 kB / 358.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.262, allocations: 50.55 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004282/0.2664, allocations: 2.944 MB / 412.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.2678, allocations: 0.7596 MB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.2679, allocations: 7.938 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.2681, allocations: 47.56 kB / 412.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.2683, allocations: 99.12 kB / 413 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.2686, allocations: 119.8 kB / 413.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004482/0.2691, allocations: 414.5 kB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.2693, allocations: 127.2 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.2695, allocations: 159.4 kB / 413.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.2697, allocations: 175.2 kB / 413.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.113e-05/0.2698, allocations: 47.98 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.235e-05/0.2699, allocations: 40 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.791e-05/0.27, allocations: 75.77 kB / 414.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.2702, allocations: 171.2 kB / 414.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.2707, allocations: 453.3 kB / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2707, allocations: 0 / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2707, allocations: 0 / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.2707, allocations: 0 / 414.7 MB, free: 11.74 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001329/0.272, allocations: 0.6923 MB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.2721, allocations: 8.031 kB / 415.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.2721, allocations: 54.73 kB / 415.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.409e-05/0.2722, allocations: 44.64 kB / 415.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.2727, allocations: 307.7 kB / 415.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.2727, allocations: 20.94 kB / 415.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.325e-05/0.2727, allocations: 24.38 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007335/0.2735, allocations: 331.7 kB / 416.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2735, allocations: 0 / 416.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.2735, allocations: 16 kB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2736, allocations: 8 kB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000812/0.2744, allocations: 274.1 kB / 416.5 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.2763, allocations: 1.155 MB / 417.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008578/0.2772, allocations: 250.5 kB / 417.9 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.2775, allocations: 108.8 kB / 418 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.2776, allocations: 3.938 kB / 418 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004867/0.2781, allocations: 181.9 kB / 418.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.2781, allocations: 0 / 418.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002396/0.2805, allocations: 0.663 MB / 418.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.2806, allocations: 110.8 kB / 418.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.2809, allocations: 290.6 kB / 419.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.281, allocations: 29.64 kB / 419.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.2811, allocations: 196.1 kB / 419.4 MB, free: 6.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.086e-05/0.2812, allocations: 51.56 kB / 419.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.463e-05/0.2813, allocations: 49.92 kB / 419.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2814, allocations: 335 kB / 419.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.2818, allocations: 108.4 kB / 420 MB, free: 6.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/0.2823, allocations: 208.8 kB / 420.2 MB, free: 5.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007551/0.283, allocations: 315.2 kB / 420.5 MB, free: 5.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.283, allocations: 0 / 420.5 MB, free: 5.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001289/0.2843, allocations: 475.7 kB / 420.9 MB, free: 5.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.2844, allocations: 33.7 kB / 421 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2844, allocations: 0 / 421 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.2848, allocations: 88.86 kB / 421.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.285, allocations: 51.89 kB / 421.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002796/0.2878, allocations: 1.998 MB / 423.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.2881, allocations: 51.81 kB / 423.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.2882, allocations: 15.92 kB / 423.2 MB, free: 2.719 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: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.2884, allocations: 152.8 kB / 423.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.2884, allocations: 23.92 kB / 423.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.298e-05/0.2885, allocations: 29.83 kB / 423.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2885, allocations: 4 kB / 423.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.2885, allocations: 0 / 423.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2885, allocations: 0 / 423.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003242/0.2888, allocations: 325.4 kB / 423.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2888, allocations: 0 / 423.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.289, allocations: 19.97 kB / 423.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000294/0.2893, allocations: 84.8 kB / 423.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.2893, allocations: 4.047 kB / 423.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002418/0.2917, allocations: 1.813 MB / 425.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2918, allocations: 0 / 425.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.2929, allocations: 380.8 kB / 426 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.956e-05/0.293, allocations: 96.97 kB / 426.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.293, allocations: 8 kB / 426.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.2932, allocations: 35.95 kB / 426.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.125e-05/0.2933, allocations: 19.97 kB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.2933, allocations: 7.938 kB / 426.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.2936, allocations: 205.9 kB / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2936, allocations: 0 / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003861/0.294, allocations: 75.89 kB / 426.4 MB, free: 15.21 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001437/0.2954, allocations: 0.9019 MB / 427.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.2965, allocations: 445.7 kB / 427.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2965, allocations: 0.6875 kB / 427.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000488/0.297, allocations: 234.6 kB / 428 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.2973, allocations: 42.03 kB / 428 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005386/0.3027, allocations: 3.112 MB / 431.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.3031, allocations: 0.7599 MB / 431.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.3033, allocations: 34.25 kB / 431.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.3034, allocations: 83.41 kB / 432 MB, free: 9.367 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3034, allocations: 0 / 432 MB, free: 9.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/0.3374, allocations: 6.899 MB / 438.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.86, allocations: 12 kB / 438.9 MB, free: 2.68 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_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_InvertingAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1)