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.001692/0.001692, 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.001979/0.001979, allocations: 213.7 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.554/1.554, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.00198/0.00198, allocations: 64.77 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2962, allocations: 53.37 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.00967/0.3058, allocations: 6.775 MB / 438.7 MB, free: 92 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005281/0.3111, allocations: 2.483 MB / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009613/0.3121, allocations: 24 kB / 441.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005041/0.3171, allocations: 1.896 MB / 443.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002645/0.3198, allocations: 0.5473 MB / 443.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003178/0.3229, allocations: 1.333 MB / 445 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002183/0.3251, allocations: 1.113 MB / 446.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001582/0.3267, allocations: 0.8328 MB / 446.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007815/0.3275, allocations: 0.4904 MB / 447.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008776/0.3284, allocations: 0.6264 MB / 448.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.3285, allocations: 100 kB / 448.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.3297, allocations: 447.6 kB / 448.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002428/0.3299, allocations: 251.1 kB / 448.8 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006418/0.3306, allocations: 0.5597 MB / 449.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00264/0.3332, allocations: 1.667 MB / 451.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3332, allocations: 0 / 451.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3332, allocations: 0 / 451.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.651e-05/0.3332, allocations: 3.984 kB / 451.1 MB, free: 3.676 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.006808/0.34, allocations: 1.98 MB / 453 MB, free: 1.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.3401, allocations: 8.031 kB / 453.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002599/0.3404, allocations: 190.4 kB / 453.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003552/0.3439, allocations: 487.8 kB / 453.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.3443, allocations: 268.8 kB / 454 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.3444, allocations: 94.95 kB / 454.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002666/0.3447, allocations: 132.3 kB / 454.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002849/0.3476, allocations: 1.299 MB / 455.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.225e-05/0.3476, allocations: 3.984 kB / 455.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.3477, allocations: 52 kB / 455.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.811e-05/0.3478, allocations: 36 kB / 455.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00277/0.3505, allocations: 1.185 MB / 456.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007779/0.3583, allocations: 4.024 MB / 460.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.3606, allocations: 1.161 MB / 462 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.3617, allocations: 458 kB / 462.4 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001724/0.3618, allocations: 52.92 kB / 462.5 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.37e-05/0.3619, allocations: 43.56 kB / 462.5 MB, free: 7.961 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.156e-06/0.3619, allocations: 0 / 462.5 MB, free: 7.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01073/0.3726, allocations: 3.541 MB / 466 MB, free: 4.383 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/0.3727, allocations: 90.11 kB / 466.1 MB, free: 4.277 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005133/0.3732, allocations: 397.5 kB / 466.5 MB, free: 3.883 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.383e-05/0.3733, allocations: 45.7 kB / 466.6 MB, free: 3.832 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/0.3737, allocations: 464.6 kB / 467 MB, free: 3.371 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/0.3741, allocations: 448.1 kB / 467.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003657/0.3744, allocations: 231.5 kB / 467.7 MB, free: 2.695 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.3746, allocations: 370.8 kB / 468 MB, free: 2.324 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.3758, allocations: 435.8 kB / 468.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.3771, allocations: 0.6918 MB / 469.2 MB, free: 1.105 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002472/0.3796, allocations: 1.179 MB / 470.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.3796, allocations: 3.938 kB / 470.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003309/0.3829, allocations: 1.463 MB / 471.8 MB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.3829, allocations: 8 kB / 471.8 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.3829, allocations: 8 kB / 471.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006107/0.3836, allocations: 200.1 kB / 472 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.3848, allocations: 291.6 kB / 472.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004988/0.3898, allocations: 4.164 MB / 476.5 MB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009953/0.3908, allocations: 67.91 kB / 476.5 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.3909, allocations: 67.97 kB / 476.6 MB, free: 9.324 MB / 382.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.0004662/0.3914, allocations: 265.6 kB / 476.9 MB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.3916, allocations: 67.77 kB / 476.9 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003065/0.3946, allocations: 1.327 MB / 478.3 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.3946, allocations: 19.88 kB / 478.3 MB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3946, allocations: 8 kB / 478.3 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.3947, allocations: 3.984 kB / 478.3 MB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005086/0.3997, allocations: 2.562 MB / 480.8 MB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.3998, allocations: 0 / 480.8 MB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009735/0.4007, allocations: 215.7 kB / 481.1 MB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000496/0.4012, allocations: 169.7 kB / 481.2 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.496e-05/0.4013, allocations: 31.97 kB / 481.3 MB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004301/0.4056, allocations: 3.978 MB / 485.2 MB, free: 352 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4056, allocations: 0 / 485.2 MB, free: 352 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003941/0.4095, allocations: 1.861 MB / 487.1 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003868/0.4099, allocations: 147.6 kB / 487.2 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.41, allocations: 43.92 kB / 487.3 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006369/0.4107, allocations: 59.95 kB / 487.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.4109, allocations: 96.75 kB / 487.4 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-05/0.411, allocations: 35.98 kB / 487.5 MB, free: 14.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003354/0.4113, allocations: 267.2 kB / 487.7 MB, free: 13.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4113, allocations: 4 kB / 487.7 MB, free: 13.81 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00115/0.4125, allocations: 304 kB / 488 MB, free: 13.52 MB / 398.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.004444/0.4169, allocations: 2.482 MB / 490.5 MB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003076/0.42, allocations: 1.391 MB / 491.9 MB, free: 9.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.42, allocations: 0 / 491.9 MB, free: 9.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001615/0.4216, allocations: 0.8193 MB / 492.7 MB, free: 8.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.4222, allocations: 69.7 kB / 492.8 MB, free: 8.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01421/0.4364, allocations: 7.555 MB / 0.4886 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007134/0.4371, allocations: 1.005 MB / 0.4896 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006035/0.4378, allocations: 138.6 kB / 0.4897 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005201/0.4383, allocations: 351.2 kB / 0.4901 GB, free: 15.26 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4383, allocations: 4 kB / 0.4901 GB, free: 15.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06447/0.5027, allocations: 18.49 MB / 0.5081 GB, free: 12.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.16/23.67, allocations: 3.938 kB / 0.5081 GB, free: 12.92 MB / 430.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.31803541071713] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 23.767137479037046 23.791299526 23.452794288 Calling exit ...