Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.001791/0.001791, allocations: 120 kB / 18.5 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.002026/0.002026, allocations: 213.6 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.56/1.56, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",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: 75.81 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1226, allocations: 53.32 MB / 427 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004836/0.1275, allocations: 2.783 MB / 429.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002073/0.1296, allocations: 0.9501 MB / 430.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.1297, allocations: 8 kB / 430.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000282/0.13, allocations: 59.45 kB / 430.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003394/0.1304, allocations: 111.2 kB / 430.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.1307, allocations: 107.8 kB / 431 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004199/0.1311, allocations: 354.6 kB / 431.4 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.1313, allocations: 81.69 kB / 431.4 MB, free: 316 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000378/0.1317, allocations: 147.5 kB / 431.6 MB, free: 168 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.1319, allocations: 155.2 kB / 431.7 MB, free: 12 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2414/0.3733, allocations: 28.7 kB / 431.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.3735, allocations: 32.09 kB / 431.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.096e-05/0.3736, allocations: 66.56 kB / 431.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.3737, allocations: 158 kB / 432 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005553/0.3743, allocations: 372.8 kB / 432.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3743, allocations: 0 / 432.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3743, allocations: 0 / 432.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.3743, allocations: 0.625 kB / 432.4 MB, free: 7.887 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001121/0.3754, allocations: 0.614 MB / 433 MB, free: 7.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3755, allocations: 10.16 kB / 433 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.004e-05/0.3755, allocations: 64.33 kB / 433.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.3757, allocations: 44.03 kB / 433.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.3761, allocations: 273.6 kB / 433.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.3761, allocations: 23.66 kB / 433.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.3762, allocations: 25.56 kB / 433.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005077/0.3767, allocations: 252.2 kB / 433.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3767, allocations: 2.344 kB / 433.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.3767, allocations: 14.56 kB / 433.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.3767, allocations: 6.125 kB / 433.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004312/0.3772, allocations: 208.1 kB / 433.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.3787, allocations: 0.9956 MB / 434.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.3791, allocations: 196.2 kB / 435.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.3794, allocations: 106.1 kB / 435.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.3794, allocations: 2.688 kB / 435.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.3794, allocations: 34.41 kB / 435.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.3794, allocations: 2.625 kB / 435.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.005385/0.3848, allocations: 1.55 MB / 436.8 MB, free: 6.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.3849, allocations: 59.22 kB / 436.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003583/0.3852, allocations: 229.3 kB / 437.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.3853, allocations: 33.64 kB / 437.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3854, allocations: 193.4 kB / 437.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.455e-05/0.3854, allocations: 130.4 kB / 437.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.3856, allocations: 67.61 kB / 437.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.638e-05/0.3857, allocations: 335.3 kB / 437.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.3859, allocations: 113.4 kB / 437.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.3862, allocations: 153.9 kB / 438.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005079/0.3867, allocations: 288.7 kB / 438.3 MB, free: 5.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3867, allocations: 0 / 438.3 MB, free: 5.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001693/0.3884, allocations: 0.5311 MB / 438.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.3884, allocations: 6.656 kB / 438.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.3884, allocations: 3.906 kB / 438.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.3897, allocations: 242.6 kB / 439.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.39, allocations: 57.83 kB / 439.2 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004917/0.3949, allocations: 4.144 MB / 443.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.3953, allocations: 12 kB / 443.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.3953, allocations: 14.19 kB / 443.3 MB, free: 1.438 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000182/0.3955, allocations: 152.9 kB / 443.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.3955, allocations: 24.8 kB / 443.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.835e-05/0.3956, allocations: 42.98 kB / 443.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.768e-06/0.3957, allocations: 4.344 kB / 443.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.3957, allocations: 1.438 kB / 443.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3957, allocations: 2.016 kB / 443.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.3979, allocations: 0.9801 MB / 444.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3979, allocations: 4.875 kB / 444.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.3982, allocations: 37.52 kB / 444.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/0.3996, allocations: 245.1 kB / 444.8 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.3996, allocations: 9 kB / 444.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005255/0.4049, allocations: 4.125 MB / 449 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4049, allocations: 1.469 kB / 449 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.407, allocations: 0.7265 MB / 449.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.4071, allocations: 102.2 kB / 449.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.4071, allocations: 11.08 kB / 449.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.4074, allocations: 13.41 kB / 449.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.4075, allocations: 31.78 kB / 449.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.4075, allocations: 10.66 kB / 449.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002061/0.4077, allocations: 176.4 kB / 450 MB, free: 12.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4077, allocations: 0 / 450 MB, free: 12.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007764/0.4085, allocations: 99.38 kB / 450.1 MB, free: 12.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002422/0.4109, allocations: 1.273 MB / 451.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.412, allocations: 0.5552 MB / 452 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.412, allocations: 1.125 kB / 452 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006646/0.4127, allocations: 414 kB / 452.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000487/0.4132, allocations: 30.09 kB / 452.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007229/0.4204, allocations: 3.363 MB / 455.8 MB, free: 8.719 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006583/0.4211, allocations: 0.7798 MB / 456.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.4212, allocations: 25.34 kB / 456.6 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.4214, allocations: 98.59 kB / 456.7 MB, free: 7.934 MB / 366.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4214, allocations: 0 / 456.7 MB, free: 7.934 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05411/0.4755, allocations: 8.572 MB / 465.2 MB, free: 5.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.11, allocations: 8.234 kB / 465.2 MB, free: 5.184 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1.9992e-05 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.84561594389379] Failed to read output from testmodel.py, exit status != 0: ['time', 'coil.i', 'coil.Phi', 'r_mLeak.port_p.Phi', 'r_mFe.mu_r', 'r_mFe.B', 'r_mFe.H'] 14.21240596473217 14.227772886 13.850176453 Calling exit ...