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.LowPass.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.LowPass,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_LowPass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.LowPass,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_LowPass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001559/0.001559, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 197.2 kB / 18.73 MB, free: 4.336 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.465/1.465, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.001944/0.001944, allocations: 67.89 kB / 358.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2583, allocations: 50.54 MB / 409.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LowPass): time 0.004582/0.2629, allocations: 3.099 MB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.2644, allocations: 0.8065 MB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.2646, allocations: 4 kB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.2648, allocations: 51.44 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.265, allocations: 115 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.2653, allocations: 127.8 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.2658, allocations: 458.2 kB / 413.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.2661, allocations: 154.8 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.2664, allocations: 179.3 kB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.2667, allocations: 191.2 kB / 414.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.661e-05/0.2668, allocations: 44 kB / 414.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.051e-05/0.2668, allocations: 44 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.094e-05/0.2669, allocations: 87.69 kB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.2671, allocations: 195.1 kB / 414.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005714/0.2677, allocations: 0.4894 MB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2677, allocations: 4 kB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2677, allocations: 4 kB / 415.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2678, allocations: 0 / 415.1 MB, free: 11.26 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001388/0.2691, allocations: 0.7146 MB / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.2692, allocations: 8.031 kB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.183e-05/0.2693, allocations: 66.72 kB / 415.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.426e-05/0.2694, allocations: 36.7 kB / 415.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004617/0.2698, allocations: 318.8 kB / 416.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.2699, allocations: 20.94 kB / 416.3 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.2699, allocations: 32.12 kB / 416.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007517/0.2707, allocations: 351.6 kB / 416.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2707, allocations: 0 / 416.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.2707, allocations: 12 kB / 416.7 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2708, allocations: 7.938 kB / 416.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008352/0.2716, allocations: 306 kB / 417 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.2738, allocations: 1.26 MB / 418.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009377/0.2748, allocations: 343.4 kB / 418.6 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004275/0.2752, allocations: 140.8 kB / 418.7 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.2752, allocations: 4 kB / 418.7 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004975/0.2757, allocations: 189.9 kB / 418.9 MB, free: 7.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.2758, allocations: 0 / 418.9 MB, free: 7.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.002183/0.2779, allocations: 0.6544 MB / 419.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.142e-05/0.278, allocations: 110.8 kB / 419.7 MB, free: 6.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.2784, allocations: 299.2 kB / 419.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.2784, allocations: 25.7 kB / 420 MB, free: 6.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.2786, allocations: 208.4 kB / 420.2 MB, free: 5.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.2786, allocations: 63.47 kB / 420.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.2787, allocations: 57.66 kB / 420.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2789, allocations: 338.8 kB / 420.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003776/0.2793, allocations: 120.2 kB / 420.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.2797, allocations: 220.4 kB / 421 MB, free: 5.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/0.2805, allocations: 336.8 kB / 421.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2805, allocations: 4 kB / 421.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001348/0.2819, allocations: 487.2 kB / 421.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.2819, allocations: 33.7 kB / 421.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.282, allocations: 3.984 kB / 421.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003289/0.2823, allocations: 68.83 kB / 421.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.2826, allocations: 71.88 kB / 421.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.2851, allocations: 1.633 MB / 423.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003759/0.2854, allocations: 63.83 kB / 423.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.2855, allocations: 12 kB / 423.6 MB, free: 2.156 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 (31): * Single equations (assignments): 29 * 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.000196/0.2857, allocations: 153.7 kB / 423.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.2857, allocations: 31.84 kB / 423.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.472e-05/0.2858, allocations: 42.14 kB / 423.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.2858, allocations: 0 / 423.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2858, allocations: 0 / 423.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2858, allocations: 3.984 kB / 423.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.2874, allocations: 0.7887 MB / 424.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.2875, allocations: 4.031 kB / 424.7 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.2877, allocations: 47.91 kB / 424.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002284/0.2879, allocations: 60.81 kB / 424.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.288, allocations: 0 / 424.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002074/0.29, allocations: 1.633 MB / 426.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2901, allocations: 0 / 426.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.2916, allocations: 0.5593 MB / 427 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.2917, allocations: 112.9 kB / 427.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.2917, allocations: 0 / 427.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002848/0.292, allocations: 36.02 kB / 427.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.075e-05/0.2921, allocations: 31.91 kB / 427.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.2921, allocations: 8 kB / 427.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002965/0.2924, allocations: 210 kB / 427.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2925, allocations: 0 / 427.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004413/0.2929, allocations: 79.84 kB / 427.4 MB, free: 14.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (firstOrder.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 (16): * Single equations (assignments): 13 * 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.001837/0.2947, allocations: 1.108 MB / 428.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.2958, allocations: 446.2 kB / 429 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2958, allocations: 3.938 kB / 429 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.2963, allocations: 245.9 kB / 429.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.2968, allocations: 68.47 kB / 429.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007354/0.3041, allocations: 3.657 MB / 432.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.3045, allocations: 0.76 MB / 433.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001616/0.3047, allocations: 30.97 kB / 433.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.3049, allocations: 91.41 kB / 433.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3049, allocations: 4 kB / 433.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0337/0.3386, allocations: 7.26 MB / 441.1 MB, free: 400 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.9, allocations: 10.69 kB / 441.1 MB, free: 392 kB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.LowPass.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.LowPass.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.LowPass.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.LowPass.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.LowPass_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_LowPass.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.LowPass.pipe 2>&1)