Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CoupledInductors.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.CoupledInductors,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001565, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001764/0.001764, allocations: 199.9 kB / 18.73 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.62/1.62, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.002146/0.002146, allocations: 59.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.364, allocations: 50.55 MB / 409.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.004639/0.3687, allocations: 2.847 MB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.3706, allocations: 0.7595 MB / 412.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002471/0.3709, allocations: 8 kB / 412.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.3711, allocations: 63.42 kB / 412.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.3714, allocations: 95.06 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005022/0.3719, allocations: 123.8 kB / 413 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006819/0.3726, allocations: 450.8 kB / 413.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004082/0.373, allocations: 220.9 kB / 413.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003931/0.3734, allocations: 187.3 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003273/0.3738, allocations: 203.1 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.974e-05/0.3739, allocations: 48 kB / 414 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.374, allocations: 59.98 kB / 414.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.3741, allocations: 99.69 kB / 414.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002401/0.3744, allocations: 215 kB / 414.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007235/0.3751, allocations: 0.5049 MB / 414.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.3751, allocations: 0 / 414.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3751, allocations: 0 / 414.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.3751, allocations: 0 / 414.9 MB, free: 11.51 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001402/0.3765, allocations: 0.6938 MB / 415.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.3766, allocations: 8.031 kB / 415.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.3767, allocations: 86.7 kB / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002796/0.377, allocations: 56.64 kB / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.3774, allocations: 284.5 kB / 416 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.3774, allocations: 29.38 kB / 416.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.04e-05/0.3775, allocations: 56.31 kB / 416.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008019/0.3783, allocations: 447.4 kB / 416.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.3783, allocations: 0 / 416.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.3784, allocations: 20 kB / 416.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.3784, allocations: 12 kB / 416.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006375/0.3791, allocations: 283.9 kB / 416.9 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.3812, allocations: 1.307 MB / 418.2 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.3818, allocations: 243.3 kB / 418.4 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004086/0.3822, allocations: 200.7 kB / 418.6 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.3823, allocations: 4 kB / 418.6 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.3823, allocations: 34.56 kB / 418.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.544e-06/0.3823, allocations: 0 / 418.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001514/0.3838, allocations: 0.5547 MB / 419.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.384, allocations: 239.3 kB / 419.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.3843, allocations: 206.8 kB / 419.6 MB, free: 6.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.3843, allocations: 37.7 kB / 419.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.3845, allocations: 204.6 kB / 419.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.936e-05/0.3846, allocations: 111.1 kB / 420 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.3848, allocations: 61.69 kB / 420 MB, free: 6.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.385, allocations: 326.8 kB / 420.3 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.3852, allocations: 79.95 kB / 420.4 MB, free: 5.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.3854, allocations: 152.5 kB / 420.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003736/0.3858, allocations: 200.2 kB / 420.8 MB, free: 5.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3858, allocations: 7.938 kB / 420.8 MB, free: 5.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005185/0.3864, allocations: 281.1 kB / 421.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.3864, allocations: 8 kB / 421.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3864, allocations: 0 / 421.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3864, allocations: 0 / 421.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.3868, allocations: 83.89 kB / 421.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.3868, allocations: 4 kB / 421.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.387, allocations: 27.8 kB / 421.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.3871, allocations: 12 kB / 421.2 MB, free: 4.828 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000206/0.3873, allocations: 157.8 kB / 421.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.29e-05/0.3874, allocations: 27.8 kB / 421.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.119e-05/0.3874, allocations: 30.66 kB / 421.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.3875, allocations: 4 kB / 421.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.3875, allocations: 7.938 kB / 421.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3875, allocations: 3.984 kB / 421.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.3888, allocations: 0.7673 MB / 422.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.3889, allocations: 0 / 422.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.3891, allocations: 55.89 kB / 422.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00035/0.3895, allocations: 80.81 kB / 422.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.3895, allocations: 8 kB / 422.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002409/0.392, allocations: 1.977 MB / 424.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.392, allocations: 8.094 kB / 424.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008765/0.3929, allocations: 0.5012 MB / 424.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.393, allocations: 100.9 kB / 424.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/0.3931, allocations: 8.062 kB / 424.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.3932, allocations: 12.11 kB / 424.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.3933, allocations: 31.97 kB / 425 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.3934, allocations: 11.94 kB / 425 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001605/0.3935, allocations: 144.6 kB / 425.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3935, allocations: 11.88 kB / 425.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.394, allocations: 107.7 kB / 425.2 MB, free: 0.5312 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (18): * Single equations (assignments): 17 * 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): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001357/0.3953, allocations: 1.036 MB / 426.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005155/0.3959, allocations: 216 kB / 426.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3959, allocations: 0 / 426.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005225/0.3964, allocations: 278.8 kB / 426.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005006/0.3969, allocations: 39.86 kB / 426.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00423/0.4012, allocations: 2.894 MB / 429.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.4017, allocations: 0.7831 MB / 430.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.4018, allocations: 29.94 kB / 430.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.402, allocations: 103.4 kB / 430.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.402, allocations: 0 / 430.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.4396, allocations: 5.981 MB / 436.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.71, allocations: 6.344 kB / 436.6 MB, free: 5.156 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1)