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.001495/0.001495, allocations: 117.9 kB / 17.84 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001701/0.001701, allocations: 199.5 kB / 18.79 MB, free: 4.289 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.541/1.541, allocations: 230.4 MB / 250 MB, free: 9.035 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.001908/0.001908, allocations: 67.84 kB / 366.9 MB, free: 7.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3312, allocations: 53.3 MB / 420.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009962/0.3412, allocations: 6.541 MB / 426.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005419/0.3466, allocations: 2.651 MB / 429.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008716/0.3475, allocations: 23.94 kB / 429.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003431/0.3509, allocations: 1.274 MB / 430.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002055/0.3529, allocations: 0.5318 MB / 431.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00292/0.3559, allocations: 1.264 MB / 432.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002055/0.3579, allocations: 1.071 MB / 433.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001519/0.3594, allocations: 0.6991 MB / 434.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008473/0.3603, allocations: 450.3 kB / 434.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.3615, allocations: 0.5485 MB / 435.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003084/0.3618, allocations: 96 kB / 435.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001255/0.363, allocations: 419.6 kB / 435.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003365/0.3633, allocations: 235.1 kB / 435.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007876/0.3641, allocations: 0.517 MB / 436.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00265/0.3668, allocations: 1.533 MB / 438 MB, free: 6.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3668, allocations: 0 / 438 MB, free: 6.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3668, allocations: 0 / 438 MB, free: 6.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.735e-05/0.3669, allocations: 0 / 438 MB, free: 6.383 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.005552/0.3724, allocations: 1.673 MB / 439.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.3725, allocations: 12.03 kB / 439.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004028/0.3729, allocations: 171.4 kB / 439.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003424/0.3763, allocations: 0.4919 MB / 440.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.3774, allocations: 0.4944 MB / 440.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.3775, allocations: 86.23 kB / 440.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002573/0.3777, allocations: 112 kB / 441 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.3801, allocations: 0.9747 MB / 442 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.727e-05/0.3802, allocations: 3.984 kB / 442 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.3803, allocations: 48 kB / 442 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.57e-05/0.3803, allocations: 28 kB / 442.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.3826, allocations: 0.9575 MB / 443 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007421/0.39, allocations: 3.771 MB / 446.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002272/0.3923, allocations: 1.486 MB / 448.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008591/0.3931, allocations: 392.3 kB / 448.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002303/0.3934, allocations: 187.2 kB / 448.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009831/0.3943, allocations: 466.5 kB / 449.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.917e-06/0.3943, allocations: 7.938 kB / 449.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01001/0.4044, allocations: 4.008 MB / 453.3 MB, free: 6.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.4045, allocations: 149.5 kB / 453.5 MB, free: 6.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/0.405, allocations: 409.5 kB / 453.9 MB, free: 5.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.219e-05/0.4051, allocations: 45.7 kB / 453.9 MB, free: 5.688 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004018/0.4055, allocations: 433 kB / 454.3 MB, free: 5.258 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004014/0.4059, allocations: 452.1 kB / 454.8 MB, free: 4.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003391/0.4062, allocations: 198.9 kB / 455 MB, free: 4.613 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.4065, allocations: 382.8 kB / 455.3 MB, free: 4.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008364/0.4073, allocations: 354.5 kB / 455.7 MB, free: 3.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.4083, allocations: 0.539 MB / 456.2 MB, free: 3.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/0.4101, allocations: 0.942 MB / 457.2 MB, free: 2.281 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.4101, allocations: 4 kB / 457.2 MB, free: 2.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002884/0.413, allocations: 1.378 MB / 458.6 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.413, allocations: 12 kB / 458.6 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.413, allocations: 4 kB / 458.6 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009934/0.414, allocations: 346.1 kB / 458.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008829/0.4149, allocations: 215.6 kB / 459.1 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009813/0.4247, allocations: 8.485 MB / 467.6 MB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000852/0.4256, allocations: 51.92 kB / 467.7 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/0.4257, allocations: 48.06 kB / 467.7 MB, free: 7.168 MB / 382.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.0006245/0.4263, allocations: 266.6 kB / 468 MB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.4265, allocations: 75.53 kB / 468 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.4294, allocations: 1.286 MB / 469.3 MB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.4294, allocations: 12 kB / 469.3 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.4294, allocations: 11.98 kB / 469.3 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.4294, allocations: 11.92 kB / 469.4 MB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004812/0.4342, allocations: 2.51 MB / 471.9 MB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.4342, allocations: 7.922 kB / 471.9 MB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000718/0.435, allocations: 151.8 kB / 472 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.436, allocations: 329.8 kB / 472.3 MB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.551e-05/0.4361, allocations: 27.98 kB / 472.4 MB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009187/0.4453, allocations: 8.12 MB / 480.5 MB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.4453, allocations: 0 / 480.5 MB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003712/0.449, allocations: 1.817 MB / 482.3 MB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004129/0.4494, allocations: 228.8 kB / 482.5 MB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.4495, allocations: 24 kB / 482.6 MB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.45, allocations: 39.98 kB / 482.6 MB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002653/0.4503, allocations: 112.7 kB / 482.7 MB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.476e-05/0.4504, allocations: 32 kB / 482.7 MB, free: 7.395 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003691/0.4507, allocations: 275.2 kB / 483 MB, free: 7.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4507, allocations: 0 / 483 MB, free: 7.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001245/0.452, allocations: 320 kB / 483.3 MB, free: 6.812 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.004173/0.4562, allocations: 2.423 MB / 485.7 MB, free: 4.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003105/0.4593, allocations: 1.565 MB / 487.3 MB, free: 2.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4593, allocations: 4 kB / 487.3 MB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/0.4613, allocations: 1.092 MB / 488.4 MB, free: 1.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007034/0.462, allocations: 77.48 kB / 488.5 MB, free: 1.496 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/0.4757, allocations: 7.389 MB / 495.9 MB, free: 9.824 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008235/0.4765, allocations: 1.021 MB / 496.9 MB, free: 8.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005052/0.477, allocations: 102.2 kB / 497 MB, free: 8.672 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005042/0.4776, allocations: 354.4 kB / 497.3 MB, free: 8.328 MB / 414.1 MB Notification: Performance of SimCode: time 1.502e-06/0.4776, allocations: 0 / 497.3 MB, free: 8.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06913/0.5467, allocations: 18.82 MB / 0.5041 GB, free: 5.711 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.8/18.35, allocations: 7.875 kB / 0.5041 GB, free: 5.703 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)