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.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001315, allocations: 122.5 kB / 18.51 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.504/1.504, allocations: 230.5 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002049/0.002049, allocations: 71.83 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1279, allocations: 53.31 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.2477/0.3755, allocations: 5.083 MB / 432.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003821/0.3793, allocations: 2.171 MB / 434.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004306/0.3798, allocations: 15.62 kB / 434.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002852/0.3826, allocations: 1.415 MB / 435.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.3839, allocations: 422.3 kB / 436.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00216/0.3861, allocations: 1.21 MB / 437.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.3871, allocations: 0.738 MB / 438.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008243/0.3879, allocations: 0.5119 MB / 438.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005589/0.3885, allocations: 343.7 kB / 438.9 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004737/0.3889, allocations: 426 kB / 439.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.3891, allocations: 66.94 kB / 439.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.3902, allocations: 410.6 kB / 439.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.3903, allocations: 161.7 kB / 439.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.3906, allocations: 381.6 kB / 440.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001861/0.3925, allocations: 1.203 MB / 441.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3925, allocations: 8.812 kB / 441.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3925, allocations: 0 / 441.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.3925, allocations: 0 / 441.5 MB, free: 5.059 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004585/0.3971, allocations: 1.481 MB / 443 MB, free: 4.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.3971, allocations: 10.12 kB / 443 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.3973, allocations: 134.9 kB / 443.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00271/0.4, allocations: 365.7 kB / 443.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.4003, allocations: 251.2 kB / 443.8 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.248e-05/0.4003, allocations: 63.97 kB / 443.8 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.4005, allocations: 83.36 kB / 443.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.4022, allocations: 0.8759 MB / 444.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.4022, allocations: 9.859 kB / 444.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-05/0.4023, allocations: 31.67 kB / 444.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.4023, allocations: 19.84 kB / 444.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.4041, allocations: 0.7882 MB / 445.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004203/0.4084, allocations: 3.021 MB / 448.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.4094, allocations: 0.9564 MB / 449.6 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005001/0.4099, allocations: 217.8 kB / 449.8 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001572/0.4101, allocations: 182.9 kB / 450 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.4101, allocations: 42.38 kB / 450 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.264e-06/0.4101, allocations: 0 / 450 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.008284/0.4184, allocations: 2.395 MB / 452.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.4185, allocations: 89.09 kB / 452.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004252/0.4189, allocations: 308.8 kB / 452.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.379e-05/0.419, allocations: 41.3 kB / 452.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.4193, allocations: 376.2 kB / 453.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.4195, allocations: 218.2 kB / 453.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/0.4198, allocations: 145.2 kB / 453.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.42, allocations: 351.3 kB / 453.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007809/0.4208, allocations: 272.3 kB / 454.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009843/0.4217, allocations: 0.5021 MB / 454.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001788/0.4235, allocations: 0.8033 MB / 455.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4235, allocations: 2.25 kB / 455.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002256/0.4258, allocations: 0.9009 MB / 456.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.4258, allocations: 8 kB / 456.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/0.4258, allocations: 10.88 kB / 456.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002677/0.4261, allocations: 72.77 kB / 456.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000836/0.4269, allocations: 194.5 kB / 456.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.4295, allocations: 2.866 MB / 459.5 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007087/0.4302, allocations: 60.06 kB / 459.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.12e-05/0.4303, allocations: 36.17 kB / 459.6 MB, free: 9.344 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003933/0.4307, allocations: 217 kB / 459.8 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.4308, allocations: 52.28 kB / 459.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.4329, allocations: 0.7156 MB / 460.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.4329, allocations: 6.438 kB / 460.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4329, allocations: 1.125 kB / 460.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.433, allocations: 10.33 kB / 460.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003037/0.436, allocations: 1.42 MB / 462 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.436, allocations: 3.984 kB / 462.1 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000645/0.4366, allocations: 126.2 kB / 462.2 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.4368, allocations: 62.67 kB / 462.2 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.524e-05/0.4369, allocations: 17.36 kB / 462.3 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.4392, allocations: 2.846 MB / 465.1 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4392, allocations: 1.188 kB / 465.1 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.4419, allocations: 1.075 MB / 466.2 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002652/0.4422, allocations: 170.9 kB / 466.3 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.424e-05/0.4422, allocations: 15.16 kB / 466.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004896/0.4427, allocations: 46.95 kB / 466.4 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.4428, allocations: 49.97 kB / 466.5 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/0.4429, allocations: 16.45 kB / 466.5 MB, free: 3.984 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002659/0.4432, allocations: 207.6 kB / 466.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4432, allocations: 0 / 466.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008922/0.444, allocations: 177.4 kB / 466.8 MB, free: 3.824 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003308/0.4474, allocations: 1.674 MB / 468.5 MB, free: 2.645 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.4497, allocations: 0.8782 MB / 469.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4497, allocations: 1.25 kB / 469.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.4508, allocations: 0.5215 MB / 469.9 MB, free: 1.742 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005466/0.4514, allocations: 48.12 kB / 470 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009806/0.4612, allocations: 5.091 MB / 475.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006482/0.4618, allocations: 0.8774 MB / 475.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003963/0.4622, allocations: 90.27 kB / 476 MB, free: 13.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003991/0.4626, allocations: 223.9 kB / 476.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4626, allocations: 0 / 476.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05081/0.5134, allocations: 11.38 MB / 487.6 MB, free: 2.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.57, allocations: 3.188 kB / 487.6 MB, free: 2.855 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.186200653668493] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 13.660356706008315 13.68065503 13.283978836 Calling exit ...