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.QuadraticCoreAirgap.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.001516/0.001516, allocations: 121.2 kB / 18.5 MB, free: 4.578 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.002387/0.002387, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.573/1.573, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.002119/0.002119, allocations: 71.83 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1178, allocations: 53.32 MB / 427 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.2524/0.3703, allocations: 6.747 MB / 433.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004847/0.3751, allocations: 2.472 MB / 436.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.3763, allocations: 21.5 kB / 436.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004272/0.3806, allocations: 1.894 MB / 438.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002308/0.3829, allocations: 0.5502 MB / 438.7 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003014/0.3859, allocations: 1.329 MB / 440 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002114/0.388, allocations: 1.112 MB / 441.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.3894, allocations: 0.7177 MB / 441.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009054/0.3903, allocations: 497.5 kB / 442.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008876/0.3912, allocations: 0.6176 MB / 443 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002413/0.3915, allocations: 99.22 kB / 443.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.3929, allocations: 457 kB / 443.5 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002282/0.3931, allocations: 248.4 kB / 443.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008522/0.3939, allocations: 0.5599 MB / 444.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003187/0.3971, allocations: 1.679 MB / 446 MB, free: 2.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3971, allocations: 0 / 446 MB, free: 2.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3971, allocations: 1.125 kB / 446 MB, free: 2.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.579e-05/0.3972, allocations: 0 / 446 MB, free: 2.359 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.007474/0.4047, allocations: 2.051 MB / 448 MB, free: 1.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.4047, allocations: 10.23 kB / 448 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002663/0.405, allocations: 191 kB / 448.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003788/0.4088, allocations: 497 kB / 448.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004484/0.4092, allocations: 311 kB / 449 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.4094, allocations: 95.33 kB / 449.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004496/0.4098, allocations: 132.7 kB / 449.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003253/0.4131, allocations: 1.301 MB / 450.5 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.664e-05/0.4131, allocations: 7.5 kB / 450.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.4132, allocations: 51.45 kB / 450.6 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-05/0.4133, allocations: 31.38 kB / 450.6 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0034/0.4167, allocations: 1.19 MB / 451.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009647/0.4263, allocations: 4.28 MB / 456.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003097/0.4294, allocations: 2.353 MB / 458.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.4306, allocations: 456.2 kB / 458.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002833/0.4309, allocations: 211.2 kB / 459.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.404e-05/0.4309, allocations: 48.44 kB / 459.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.156e-06/0.431, allocations: 0 / 459.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01276/0.4437, allocations: 3.767 MB / 462.9 MB, free: 8.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.717e-05/0.4438, allocations: 94.97 kB / 463 MB, free: 8.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007188/0.4445, allocations: 393.1 kB / 463.4 MB, free: 7.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.4447, allocations: 41.33 kB / 463.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004075/0.4451, allocations: 470.6 kB / 463.9 MB, free: 7.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006121/0.4457, allocations: 446.4 kB / 464.3 MB, free: 7.078 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005035/0.4462, allocations: 234.5 kB / 464.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002515/0.4465, allocations: 372.6 kB / 464.9 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.4478, allocations: 432.6 kB / 465.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/0.4493, allocations: 0.6971 MB / 466 MB, free: 5.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002814/0.4521, allocations: 1.175 MB / 467.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.488e-05/0.4521, allocations: 6.125 kB / 467.2 MB, free: 5.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004369/0.4565, allocations: 1.459 MB / 468.7 MB, free: 4.328 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.768e-05/0.4565, allocations: 12.38 kB / 468.7 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.589e-05/0.4565, allocations: 6.688 kB / 468.7 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007768/0.4573, allocations: 202.6 kB / 468.9 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.4587, allocations: 287.8 kB / 469.2 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005907/0.4646, allocations: 4.372 MB / 473.6 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.466, allocations: 87.39 kB / 473.6 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002804/0.4663, allocations: 51.67 kB / 473.7 MB, free: 144 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008752/0.4672, allocations: 263.5 kB / 474 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/0.4675, allocations: 68.77 kB / 474 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004113/0.4716, allocations: 1.332 MB / 475.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/0.4716, allocations: 16.25 kB / 475.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/0.4716, allocations: 4.188 kB / 475.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.4716, allocations: 7.969 kB / 475.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006727/0.4784, allocations: 2.597 MB / 478 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.4784, allocations: 4.125 kB / 478 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.4795, allocations: 215.7 kB / 478.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006081/0.4801, allocations: 167.1 kB / 478.4 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.4802, allocations: 31.98 kB / 478.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005106/0.4853, allocations: 4.195 MB / 482.6 MB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4853, allocations: 0 / 482.6 MB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005023/0.4904, allocations: 1.865 MB / 484.4 MB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/0.491, allocations: 224.6 kB / 484.7 MB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/0.4912, allocations: 20 kB / 484.7 MB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008547/0.492, allocations: 59.94 kB / 484.7 MB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002612/0.4923, allocations: 100.9 kB / 484.8 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.593e-05/0.4924, allocations: 31.98 kB / 484.9 MB, free: 5.543 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004564/0.4928, allocations: 275.2 kB / 485.1 MB, free: 5.273 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4928, allocations: 0 / 485.1 MB, free: 5.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001663/0.4945, allocations: 303.9 kB / 485.4 MB, free: 4.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005481/0.5, allocations: 2.486 MB / 487.9 MB, free: 2.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003934/0.5039, allocations: 1.387 MB / 489.3 MB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.5039, allocations: 0 / 489.3 MB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.5059, allocations: 0.8198 MB / 490.1 MB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.507, allocations: 66.17 kB / 490.2 MB, free: 132 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01874/0.5258, allocations: 7.563 MB / 497.8 MB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009873/0.5268, allocations: 1.009 MB / 498.8 MB, free: 7.211 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007831/0.5275, allocations: 146.6 kB / 498.9 MB, free: 7.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000737/0.5283, allocations: 351.3 kB / 499.3 MB, free: 6.719 MB / 398.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5283, allocations: 0 / 499.3 MB, free: 6.719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06888/0.5972, allocations: 17.67 MB / 0.5048 GB, free: 5.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.48/24.07, allocations: 0 / 0.5048 GB, free: 5.285 MB / 414.1 MB " [Timeout remaining time 636] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_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_QuadraticCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.813828359823674] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 24.17016021674499 24.189376355 23.788121275 Calling exit ...