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.Integrator.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.Integrator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 122.5 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001322, allocations: 202 kB / 18.74 MB, free: 4.312 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.379/1.379, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.00191/0.00191, allocations: 63.91 kB / 358.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2866, allocations: 50.55 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.004712/0.2914, allocations: 2.881 MB / 412 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2929, allocations: 0.7479 MB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.293, allocations: 11.94 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001737/0.2932, allocations: 43.58 kB / 412.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.2934, allocations: 99.19 kB / 412.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.2938, allocations: 115.8 kB / 413 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.2942, allocations: 390.5 kB / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.2945, allocations: 123.2 kB / 413.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003047/0.2948, allocations: 159.4 kB / 413.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.2951, allocations: 163.3 kB / 413.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.973e-05/0.2951, allocations: 40 kB / 413.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.036e-05/0.2952, allocations: 36 kB / 413.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.997e-05/0.2953, allocations: 79.75 kB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.2955, allocations: 163.2 kB / 414.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000546/0.296, allocations: 429.3 kB / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.296, allocations: 0 / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2961, allocations: 0 / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.2961, allocations: 0 / 414.5 MB, free: 11.9 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.00144/0.2975, allocations: 0.668 MB / 415.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.2976, allocations: 12.03 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.328e-05/0.2977, allocations: 62.72 kB / 415.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.933e-05/0.2978, allocations: 36.75 kB / 415.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.2983, allocations: 288.7 kB / 415.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.2983, allocations: 20.94 kB / 415.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.922e-05/0.2984, allocations: 24.38 kB / 415.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008027/0.2992, allocations: 315.8 kB / 416 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.2992, allocations: 7.938 kB / 416 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.2993, allocations: 8 kB / 416 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.2993, allocations: 12 kB / 416 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.3001, allocations: 270.1 kB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.3021, allocations: 1.177 MB / 417.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008996/0.3031, allocations: 242.5 kB / 417.7 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003389/0.3034, allocations: 108.7 kB / 417.8 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.3034, allocations: 4 kB / 417.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004774/0.3039, allocations: 169 kB / 417.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.284e-06/0.3039, allocations: 0 / 417.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002226/0.3062, allocations: 0.6044 MB / 418.5 MB, free: 7.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.3063, allocations: 81.11 kB / 418.6 MB, free: 7.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.3066, allocations: 262.6 kB / 418.9 MB, free: 7.281 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.3066, allocations: 29.7 kB / 418.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.3068, allocations: 191.9 kB / 419.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.3068, allocations: 47.64 kB / 419.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.3069, allocations: 45.7 kB / 419.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3071, allocations: 334.8 kB / 419.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003506/0.3075, allocations: 100.2 kB / 419.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.3079, allocations: 191.5 kB / 419.8 MB, free: 6.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007239/0.3086, allocations: 303.7 kB / 420.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3086, allocations: 0 / 420.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001188/0.3098, allocations: 447.8 kB / 420.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.865e-05/0.3099, allocations: 41.64 kB / 420.6 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3099, allocations: 3.984 kB / 420.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003414/0.3102, allocations: 72.81 kB / 420.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.3105, allocations: 47.97 kB / 420.7 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/0.3129, allocations: 1.637 MB / 422.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/0.3133, allocations: 55.69 kB / 422.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.3133, allocations: 23.91 kB / 422.4 MB, free: 3.473 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 (25): * Single equations (assignments): 23 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.3135, allocations: 145 kB / 422.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.3135, allocations: 23.86 kB / 422.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.285e-05/0.3136, allocations: 25.7 kB / 422.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3136, allocations: 7.938 kB / 422.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.3136, allocations: 0 / 422.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3136, allocations: 0 / 422.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.3139, allocations: 313.4 kB / 422.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.314, allocations: 0 / 422.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.3142, allocations: 35.95 kB / 422.9 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002281/0.3144, allocations: 56.83 kB / 423 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.3144, allocations: 7.984 kB / 423 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002096/0.3165, allocations: 1.629 MB / 424.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3165, allocations: 0 / 424.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.3179, allocations: 461.4 kB / 425.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.329e-05/0.318, allocations: 97 kB / 425.2 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.318, allocations: 4 kB / 425.2 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.3183, allocations: 36.02 kB / 425.2 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.191e-05/0.3183, allocations: 19.97 kB / 425.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.3184, allocations: 3.984 kB / 425.2 MB, free: 404 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000193/0.3186, allocations: 190 kB / 425.4 MB, free: 216 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3186, allocations: 0 / 425.4 MB, free: 216 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.3189, allocations: 71.84 kB / 425.5 MB, free: 144 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * 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 (11): * Single equations (assignments): 8 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001729/0.3206, allocations: 0.9839 MB / 426.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009706/0.3216, allocations: 409.9 kB / 426.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.3216, allocations: 4 kB / 426.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004543/0.3221, allocations: 218.5 kB / 427.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.3224, allocations: 49.09 kB / 427.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007796/0.3302, allocations: 3.397 MB / 430.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.3307, allocations: 0.7557 MB / 431.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.3308, allocations: 26.23 kB / 431.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.3309, allocations: 75.41 kB / 431.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3309, allocations: 0 / 431.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0445/0.3755, allocations: 6.322 MB / 437.7 MB, free: 3.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.86, allocations: 0 / 437.7 MB, free: 3.852 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_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_Integrator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1)