Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Oscillator.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.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 118.2 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.001497/0.001498, allocations: 205.2 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.52/1.52, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002104/0.002104, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2828, allocations: 50.55 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008885/0.2917, allocations: 7.524 MB / 416.6 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01394/0.3057, allocations: 10.73 MB / 427.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.3072, allocations: 79.25 kB / 427.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002042/0.3092, allocations: 0.7092 MB / 428.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004225/0.3135, allocations: 1.184 MB / 429.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.3157, allocations: 0.674 MB / 430 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004324/0.32, allocations: 2.564 MB / 432.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.3206, allocations: 287.9 kB / 432.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008466/0.3214, allocations: 493.6 kB / 433.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006385/0.3221, allocations: 0.5356 MB / 433.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3222, allocations: 60 kB / 433.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002026/0.3242, allocations: 0.7727 MB / 434.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001806/0.3244, allocations: 182.8 kB / 434.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000656/0.3251, allocations: 0.6754 MB / 435.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002664/0.3277, allocations: 1.956 MB / 437.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3278, allocations: 0 / 437.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3278, allocations: 0 / 437.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.004e-05/0.3278, allocations: 0 / 437.5 MB, free: 4.828 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003196/0.331, allocations: 2.046 MB / 439.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.774e-05/0.3311, allocations: 12.03 kB / 439.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001648/0.3313, allocations: 94.64 kB / 439.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.3315, allocations: 207.7 kB / 439.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.3335, allocations: 1.354 MB / 441.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.72e-05/0.3336, allocations: 29 kB / 441.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.89e-05/0.3338, allocations: 55.94 kB / 441.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009409/0.3347, allocations: 0.508 MB / 441.8 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3347, allocations: 4 kB / 441.8 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.3348, allocations: 16 kB / 441.8 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.3348, allocations: 19.98 kB / 441.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000945/0.3358, allocations: 476.1 kB / 442.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.3391, allocations: 2.097 MB / 444.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3402, allocations: 0.704 MB / 445.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008884/0.3411, allocations: 0.5173 MB / 445.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006392/0.3475, allocations: 4.912 MB / 450.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007148/0.3482, allocations: 317.9 kB / 450.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.746e-06/0.3482, allocations: 0 / 450.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005349/0.3536, allocations: 2.432 MB / 453.2 MB, free: 4.043 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.3537, allocations: 63.84 kB / 453.3 MB, free: 3.969 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001639/0.3553, allocations: 1.288 MB / 454.6 MB, free: 2.684 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.3555, allocations: 33.7 kB / 454.6 MB, free: 2.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006497/0.3561, allocations: 0.7041 MB / 455.3 MB, free: 1.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.3563, allocations: 230 kB / 455.6 MB, free: 1.707 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.3565, allocations: 122.3 kB / 455.7 MB, free: 1.582 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3567, allocations: 341.9 kB / 456 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004579/0.3572, allocations: 209.6 kB / 456.2 MB, free: 1.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005533/0.3577, allocations: 364.5 kB / 456.6 MB, free: 0.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.3589, allocations: 0.6034 MB / 457.2 MB, free: 15.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.3589, allocations: 11.94 kB / 457.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00182/0.3608, allocations: 0.9667 MB / 458.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3608, allocations: 8 kB / 458.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.563e-05/0.3609, allocations: 68 kB / 458.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005023/0.3614, allocations: 186.5 kB / 458.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004422/0.3619, allocations: 107.8 kB / 458.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/0.3655, allocations: 2.763 MB / 461.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.3661, allocations: 24.03 kB / 461.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-05/0.3662, allocations: 32 kB / 461.3 MB, free: 11.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004818/0.3667, allocations: 273.7 kB / 461.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002145/0.3669, allocations: 198.8 kB / 461.8 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/0.3689, allocations: 0.9564 MB / 462.7 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.3689, allocations: 15.98 kB / 462.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3689, allocations: 4 kB / 462.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.369, allocations: 0 / 462.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.3702, allocations: 0.9059 MB / 463.7 MB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.868e-05/0.3703, allocations: 63.98 kB / 463.7 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000326/0.3706, allocations: 67.95 kB / 463.8 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004884/0.3711, allocations: 171.9 kB / 464 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.399e-05/0.3712, allocations: 23.94 kB / 464 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0034/0.3746, allocations: 2.761 MB / 466.8 MB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3746, allocations: 4 kB / 466.8 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.3769, allocations: 1.19 MB / 467.9 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000372/0.3773, allocations: 264 kB / 468.2 MB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.3774, allocations: 15.94 kB / 468.2 MB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.3779, allocations: 19.98 kB / 468.2 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.378, allocations: 44.38 kB / 468.3 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.437e-05/0.3781, allocations: 27.98 kB / 468.3 MB, free: 4.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001181/0.3793, allocations: 0.8535 MB / 469.2 MB, free: 3.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3793, allocations: 0 / 469.2 MB, free: 3.582 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001059/0.3803, allocations: 395.1 kB / 469.6 MB, free: 3.195 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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): 1 system {(4,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003223/0.3836, allocations: 2.098 MB / 471.6 MB, free: 1.062 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.3855, allocations: 0.9209 MB / 472.6 MB, free: 120 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3855, allocations: 0 / 472.6 MB, free: 120 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.3866, allocations: 0.6435 MB / 473.2 MB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.3877, allocations: 218 kB / 473.4 MB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01418/0.4019, allocations: 9.454 MB / 482.9 MB, free: 5.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008544/0.4028, allocations: 1.17 MB / 484.1 MB, free: 4.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005227/0.4033, allocations: 187.2 kB / 484.2 MB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006277/0.404, allocations: 0.5696 MB / 484.8 MB, free: 3.516 MB / 398.1 MB Notification: Performance of SimCode: time 1.573e-06/0.404, allocations: 0 / 484.8 MB, free: 3.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07294/0.4769, allocations: 29.75 MB / 0.5025 GB, free: 5.984 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.06, allocations: 11.5 kB / 0.5025 GB, free: 5.977 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)