Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001728/0.001728, 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.00206/0.00206, allocations: 199.9 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.457/1.457, 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.001975/0.001975, allocations: 63.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2816, allocations: 50.54 MB / 409.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.01087/0.2925, allocations: 7.898 MB / 417 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006616/0.2991, allocations: 3.154 MB / 420.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000901/0.3001, allocations: 39.88 kB / 420.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003364/0.3035, allocations: 1.332 MB / 421.5 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002584/0.3061, allocations: 0.6324 MB / 422.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003475/0.3096, allocations: 1.509 MB / 423.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002839/0.3124, allocations: 1.698 MB / 425.3 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00231/0.3148, allocations: 1.312 MB / 426.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.316, allocations: 0.6694 MB / 427.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.3173, allocations: 0.8012 MB / 428.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002924/0.3176, allocations: 168 kB / 428.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.3188, allocations: 0.4957 MB / 428.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003718/0.3192, allocations: 378.7 kB / 429.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009357/0.3202, allocations: 0.8007 MB / 429.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003509/0.3237, allocations: 2.335 MB / 432.3 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3237, allocations: 0 / 432.3 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3237, allocations: 0 / 432.3 MB, free: 10 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.915e-05/0.3238, allocations: 4 kB / 432.3 MB, free: 10 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.006098/0.3299, allocations: 2.239 MB / 434.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.33, allocations: 12.03 kB / 434.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003561/0.3303, allocations: 222.4 kB / 434.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003955/0.3343, allocations: 0.5775 MB / 435.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.3363, allocations: 0.892 MB / 436.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.3365, allocations: 156.5 kB / 436.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/0.3368, allocations: 152 kB / 436.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002907/0.3397, allocations: 1.335 MB / 437.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.519e-05/0.3397, allocations: 4 kB / 437.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/0.3399, allocations: 60 kB / 437.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.34, allocations: 32 kB / 437.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/0.3429, allocations: 1.284 MB / 439.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00948/0.3524, allocations: 4.953 MB / 444.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00323/0.3557, allocations: 1.935 MB / 446.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.357, allocations: 0.5705 MB / 446.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002507/0.3572, allocations: 195.2 kB / 446.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001548/0.3588, allocations: 0.7294 MB / 447.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 3.216e-06/0.3588, allocations: 0 / 447.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.01584/0.3747, allocations: 5.668 MB / 453.3 MB, free: 4.262 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.3748, allocations: 153.8 kB / 453.4 MB, free: 4.082 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009598/0.3758, allocations: 0.6607 MB / 454.1 MB, free: 3.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.3759, allocations: 57.7 kB / 454.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005628/0.3765, allocations: 0.5952 MB / 454.7 MB, free: 2.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005395/0.377, allocations: 0.5694 MB / 455.3 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004655/0.3775, allocations: 283.4 kB / 455.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.3777, allocations: 357.9 kB / 455.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.3789, allocations: 0.5076 MB / 456.4 MB, free: 1.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.3804, allocations: 0.8326 MB / 457.3 MB, free: 76 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/0.3832, allocations: 1.417 MB / 458.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.3833, allocations: 4 kB / 458.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.005138/0.3884, allocations: 2.028 MB / 460.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.3885, allocations: 8 kB / 460.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.3885, allocations: 12 kB / 460.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/0.3905, allocations: 0.521 MB / 461.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.3918, allocations: 287.5 kB / 461.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.4038, allocations: 9.528 MB / 471.1 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.4051, allocations: 68.03 kB / 471.1 MB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.4053, allocations: 71.97 kB / 471.2 MB, free: 1.445 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,rootMeanSquare.mean2.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,9,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007902/0.4061, allocations: 353.5 kB / 471.6 MB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/0.4063, allocations: 119.2 kB / 471.7 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004734/0.411, allocations: 1.915 MB / 473.6 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.4111, allocations: 16 kB / 473.6 MB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.4111, allocations: 7.938 kB / 473.6 MB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/0.4111, allocations: 15.91 kB / 473.6 MB, free: 15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007237/0.4184, allocations: 3.518 MB / 477.1 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.4184, allocations: 7.984 kB / 477.2 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.4194, allocations: 211.9 kB / 477.4 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001886/0.4213, allocations: 0.4982 MB / 477.9 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.4215, allocations: 43.97 kB / 477.9 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/0.4327, allocations: 9.143 MB / 487 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.247e-06/0.4328, allocations: 7.969 kB / 487.1 MB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006152/0.4389, allocations: 2.662 MB / 489.7 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006092/0.4396, allocations: 300.2 kB / 490 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.4397, allocations: 36.28 kB / 490 MB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007463/0.4405, allocations: 59.95 kB / 490.1 MB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/0.4409, allocations: 137 kB / 490.2 MB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/0.441, allocations: 59.91 kB / 490.3 MB, free: 13.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000911/0.4419, allocations: 451 kB / 490.7 MB, free: 13.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.442, allocations: 4 kB / 490.7 MB, free: 13.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001779/0.4437, allocations: 416 kB / 491.1 MB, free: 12.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,19,100.0%), (1,9,100.0%), (2,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006594/0.4503, allocations: 3.288 MB / 494.4 MB, free: 9.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00438/0.4548, allocations: 2.083 MB / 496.5 MB, free: 7.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.4548, allocations: 0 / 496.5 MB, free: 7.277 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002512/0.4573, allocations: 1.418 MB / 497.9 MB, free: 5.805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009144/0.4582, allocations: 134.9 kB / 498.1 MB, free: 5.676 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02215/0.4804, allocations: 10.86 MB / 0.497 GB, free: 10.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.4817, allocations: 1.217 MB / 0.4982 GB, free: 9.156 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007812/0.4825, allocations: 173.1 kB / 0.4984 GB, free: 8.984 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.4836, allocations: 0.5344 MB / 0.4989 GB, free: 8.449 MB / 430.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4836, allocations: 0 / 0.4989 GB, free: 8.449 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/0.5901, allocations: 28.81 MB / 0.527 GB, free: 11.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.18/25.77, allocations: 7.812 kB / 0.527 GB, free: 11.86 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)