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.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001506/0.001506, 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.001698/0.001698, 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.492/1.492, 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.002194/0.002194, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2865, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009252/0.2958, allocations: 6.487 MB / 415.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005386/0.3013, allocations: 2.639 MB / 418.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008884/0.3022, allocations: 24 kB / 418.2 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00353/0.3058, allocations: 1.268 MB / 419.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002063/0.3079, allocations: 0.5274 MB / 420 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002979/0.3109, allocations: 1.249 MB / 421.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001926/0.3128, allocations: 1.082 MB / 422.3 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.3146, allocations: 0.8982 MB / 423.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007508/0.3154, allocations: 442.4 kB / 423.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007269/0.3161, allocations: 0.5563 MB / 424.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.3163, allocations: 99.98 kB / 424.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009809/0.3173, allocations: 419.7 kB / 424.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000232/0.3175, allocations: 227.2 kB / 425 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005573/0.3181, allocations: 0.5208 MB / 425.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002185/0.3203, allocations: 1.533 MB / 427 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3203, allocations: 0 / 427 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3203, allocations: 0 / 427 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.3203, allocations: 0 / 427 MB, free: 15.35 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.00471/0.325, allocations: 1.669 MB / 428.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.3251, allocations: 12.03 kB / 428.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002916/0.3254, allocations: 175.4 kB / 428.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003264/0.3287, allocations: 475.8 kB / 429.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007789/0.3295, allocations: 0.4982 MB / 429.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.47e-05/0.3296, allocations: 86.23 kB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/0.3297, allocations: 116 kB / 430 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.3317, allocations: 0.9708 MB / 431 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.493e-05/0.3317, allocations: 3.984 kB / 431 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.3319, allocations: 48 kB / 431.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.3319, allocations: 24 kB / 431.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00196/0.3339, allocations: 0.9613 MB / 432 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006138/0.34, allocations: 3.775 MB / 435.8 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.3422, allocations: 1.537 MB / 437.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008276/0.343, allocations: 444.3 kB / 437.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002048/0.3432, allocations: 187.2 kB / 438 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008948/0.3442, allocations: 474.5 kB / 438.4 MB, free: 3.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.106e-06/0.3442, allocations: 0 / 438.4 MB, free: 3.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.009693/0.3539, allocations: 4.023 MB / 442.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.354, allocations: 141.5 kB / 442.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/0.3546, allocations: 409.5 kB / 443 MB, free: 14.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.992e-05/0.3546, allocations: 49.7 kB / 443 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003622/0.355, allocations: 433 kB / 443.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003688/0.3554, allocations: 452 kB / 443.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003334/0.3557, allocations: 206.9 kB / 444.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.3559, allocations: 382.8 kB / 444.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008991/0.3568, allocations: 346.5 kB / 444.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009405/0.3578, allocations: 0.548 MB / 445.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001709/0.3595, allocations: 0.9381 MB / 446.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3595, allocations: 4 kB / 446.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002803/0.3624, allocations: 1.394 MB / 447.7 MB, free: 9.738 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.3624, allocations: 8 kB / 447.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.3624, allocations: 4 kB / 447.7 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00094/0.3634, allocations: 343.2 kB / 448 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000848/0.3642, allocations: 211.7 kB / 448.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009079/0.3733, allocations: 8.496 MB / 456.8 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00078/0.3741, allocations: 43.98 kB / 456.8 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.36e-05/0.3742, allocations: 48.05 kB / 456.8 MB, free: 32 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005037/0.3747, allocations: 261.5 kB / 457.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.3749, allocations: 75.53 kB / 457.2 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002758/0.3776, allocations: 1.305 MB / 458.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.3777, allocations: 12 kB / 458.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.3777, allocations: 8 kB / 458.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.3777, allocations: 7.969 kB / 458.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004511/0.3822, allocations: 2.533 MB / 461 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.3823, allocations: 0 / 461 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/0.383, allocations: 164 kB / 461.2 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008319/0.3838, allocations: 319.2 kB / 461.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.131e-05/0.3839, allocations: 27.98 kB / 461.5 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009202/0.3931, allocations: 8.119 MB / 469.7 MB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3931, allocations: 4.031 kB / 469.7 MB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003761/0.3969, allocations: 1.825 MB / 471.5 MB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.3973, allocations: 232.5 kB / 471.7 MB, free: 432 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.3975, allocations: 27.98 kB / 471.7 MB, free: 404 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005114/0.398, allocations: 43.86 kB / 471.8 MB, free: 360 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.3982, allocations: 100.9 kB / 471.9 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.873e-05/0.3983, allocations: 32 kB / 471.9 MB, free: 228 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004054/0.3988, allocations: 275.2 kB / 472.2 MB, free: 15.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3988, allocations: 7.938 kB / 472.2 MB, free: 15.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001251/0.4, allocations: 320 kB / 472.5 MB, free: 15.63 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004467/0.4045, allocations: 2.442 MB / 474.9 MB, free: 13.13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003197/0.4077, allocations: 1.612 MB / 476.6 MB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4077, allocations: 256 / 476.6 MB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.4097, allocations: 1.15 MB / 477.7 MB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006204/0.4103, allocations: 73.55 kB / 477.8 MB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01447/0.4248, allocations: 7.371 MB / 485.1 MB, free: 2.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009298/0.4258, allocations: 1.028 MB / 486.2 MB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005224/0.4263, allocations: 102.2 kB / 486.3 MB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005157/0.4269, allocations: 351.3 kB / 486.6 MB, free: 1.043 MB / 398.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4269, allocations: 0 / 486.6 MB, free: 1.043 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06543/0.4923, allocations: 18.31 MB / 0.4931 GB, free: 14.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.97/18.46, allocations: 15.86 kB / 0.4931 GB, free: 14.91 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_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_LinearInductor.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1)