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.001355/0.001355, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001572/0.001572, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.472/1.472, allocations: 230.6 MB / 258.3 MB, free: 8.07 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.003086/0.003086, allocations: 64.77 kB / 378.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2948, allocations: 53.37 MB / 431.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007194/0.302, allocations: 5.097 MB / 437 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004694/0.3067, allocations: 2.195 MB / 439.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006563/0.3073, allocations: 16 kB / 439.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003699/0.311, allocations: 1.407 MB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001454/0.3125, allocations: 429.3 kB / 441.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002662/0.3151, allocations: 1.219 MB / 442.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.3162, allocations: 0.7356 MB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009837/0.3172, allocations: 0.5711 MB / 443.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005667/0.3178, allocations: 346.8 kB / 443.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000589/0.3184, allocations: 430.3 kB / 444.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.3185, allocations: 64 kB / 444.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.3196, allocations: 419.6 kB / 444.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.3197, allocations: 159.4 kB / 445 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003652/0.3201, allocations: 386.1 kB / 445.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001685/0.3218, allocations: 1.204 MB / 446.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.3218, allocations: 0 / 446.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3218, allocations: 0 / 446.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.3218, allocations: 4 kB / 446.6 MB, free: 8.238 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.004352/0.3262, allocations: 1.402 MB / 448 MB, free: 6.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3262, allocations: 12.03 kB / 448 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001624/0.3264, allocations: 127.4 kB / 448.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00253/0.3289, allocations: 368.1 kB / 448.5 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.3292, allocations: 194.3 kB / 448.7 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.638e-05/0.3292, allocations: 74.38 kB / 448.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.3294, allocations: 80.38 kB / 448.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/0.3312, allocations: 0.8758 MB / 449.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.3312, allocations: 3.953 kB / 449.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.613e-05/0.3313, allocations: 39.94 kB / 449.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.3313, allocations: 20 kB / 449.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.3332, allocations: 0.7847 MB / 450.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004824/0.338, allocations: 2.779 MB / 453.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3392, allocations: 0.5137 MB / 453.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005287/0.3397, allocations: 214.2 kB / 454 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000137/0.3398, allocations: 28.47 kB / 454.1 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.523e-05/0.3399, allocations: 47.05 kB / 454.1 MB, free: 444 kB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.386e-06/0.3399, allocations: 0 / 454.1 MB, free: 444 kB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007393/0.3473, allocations: 2.159 MB / 456.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.3474, allocations: 85.61 kB / 456.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.3478, allocations: 304.4 kB / 456.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.3478, allocations: 37.7 kB / 456.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.3481, allocations: 367.8 kB / 457 MB, free: 13.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.3483, allocations: 230 kB / 457.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.3486, allocations: 142.6 kB / 457.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3488, allocations: 354.7 kB / 457.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007505/0.3495, allocations: 265.8 kB / 458 MB, free: 12.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009394/0.3505, allocations: 0.5051 MB / 458.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.3522, allocations: 0.8049 MB / 459.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3522, allocations: 4 kB / 459.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002193/0.3544, allocations: 0.8928 MB / 460.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.3544, allocations: 8 kB / 460.2 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.3544, allocations: 11.94 kB / 460.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.3547, allocations: 78.05 kB / 460.3 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00085/0.3555, allocations: 195.7 kB / 460.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002419/0.3579, allocations: 2.669 MB / 463.2 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006996/0.3586, allocations: 64.02 kB / 463.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.568e-05/0.3587, allocations: 35.98 kB / 463.3 MB, free: 6.715 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.0003445/0.3591, allocations: 213.8 kB / 463.5 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.3592, allocations: 47.66 kB / 463.5 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/0.3611, allocations: 0.7258 MB / 464.3 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.3611, allocations: 8 kB / 464.3 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3611, allocations: 0 / 464.3 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3611, allocations: 3.984 kB / 464.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/0.364, allocations: 1.383 MB / 465.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.364, allocations: 0 / 465.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000665/0.3647, allocations: 127.8 kB / 465.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002043/0.3649, allocations: 61.66 kB / 465.8 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/0.3649, allocations: 19.98 kB / 465.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002271/0.3672, allocations: 2.646 MB / 468.5 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3672, allocations: 4.125 kB / 468.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.3698, allocations: 1.078 MB / 469.6 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/0.3701, allocations: 83.77 kB / 469.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.851e-05/0.3702, allocations: 15.98 kB / 469.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004857/0.3707, allocations: 43.95 kB / 469.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.3708, allocations: 48.41 kB / 469.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.392e-05/0.3708, allocations: 23.92 kB / 469.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.3711, allocations: 207.1 kB / 470 MB, free: 15.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3711, allocations: 4 kB / 470 MB, free: 15.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000739/0.3718, allocations: 176 kB / 470.2 MB, free: 15.48 MB / 382.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.003172/0.375, allocations: 1.672 MB / 471.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.3772, allocations: 0.873 MB / 472.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.3772, allocations: 0 / 472.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.3782, allocations: 0.5234 MB / 473.2 MB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/0.3788, allocations: 48.59 kB / 473.3 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009725/0.3885, allocations: 5.099 MB / 478.4 MB, free: 6.895 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006048/0.3891, allocations: 0.8771 MB / 479.3 MB, free: 5.996 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004126/0.3895, allocations: 88.52 kB / 479.4 MB, free: 5.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.3899, allocations: 231.3 kB / 479.6 MB, free: 5.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3899, allocations: 0 / 479.6 MB, free: 5.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05471/0.4446, allocations: 11.8 MB / 491.4 MB, free: 10.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.75, allocations: 7.188 kB / 491.4 MB, free: 10.02 MB / 398.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.219808818772435] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 13.84615320386365 13.872328122 13.545658359 Calling exit ...