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.ToroidalCoreQuadraticCrossSection.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.001671/0.001671, 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.001871/0.001871, 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.512/1.512, 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",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.002134/0.002134, allocations: 71.83 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1241, allocations: 53.33 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.005018/0.1291, allocations: 2.865 MB / 429.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.131, allocations: 0.7906 MB / 430.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.1313, allocations: 7.938 kB / 430.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.1316, allocations: 71.42 kB / 430.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003819/0.1319, allocations: 103.2 kB / 430.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.1323, allocations: 107.8 kB / 430.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005745/0.1329, allocations: 398.5 kB / 431.3 MB, free: 428 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.1331, allocations: 102.9 kB / 431.4 MB, free: 320 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004068/0.1335, allocations: 175.3 kB / 431.6 MB, free: 144 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2358/0.3694, allocations: 163 kB / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001873/0.3695, allocations: 33.47 kB / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.3697, allocations: 33.47 kB / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.362e-05/0.3698, allocations: 81.92 kB / 431.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.37, allocations: 177.7 kB / 432.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006441/0.3706, allocations: 407.5 kB / 432.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.3706, allocations: 0 / 432.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3706, allocations: 1.031 kB / 432.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.3706, allocations: 0.9375 kB / 432.5 MB, free: 7.793 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001344/0.372, allocations: 0.6594 MB / 433.1 MB, free: 7.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.372, allocations: 10.34 kB / 433.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/0.3721, allocations: 71.09 kB / 433.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.351e-05/0.3722, allocations: 38.83 kB / 433.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.3726, allocations: 280.3 kB / 433.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.3727, allocations: 25.53 kB / 433.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.3727, allocations: 35.34 kB / 433.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006029/0.3733, allocations: 296.8 kB / 433.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3733, allocations: 0 / 433.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.3734, allocations: 12.22 kB / 433.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.3734, allocations: 10.48 kB / 433.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006192/0.374, allocations: 249.7 kB / 434.2 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.3758, allocations: 1.117 MB / 435.3 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004134/0.3762, allocations: 142.1 kB / 435.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.3764, allocations: 68.39 kB / 435.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.222e-05/0.3765, allocations: 6.703 kB / 435.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.3765, allocations: 35.12 kB / 435.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 2.364e-06/0.3765, allocations: 0 / 435.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002353/0.3789, allocations: 0.599 MB / 436.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.3789, allocations: 53.72 kB / 436.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.3793, allocations: 288.5 kB / 436.4 MB, free: 6.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3793, allocations: 30.98 kB / 436.5 MB, free: 5.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.3794, allocations: 238 kB / 436.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.662e-05/0.3795, allocations: 71.39 kB / 436.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.3796, allocations: 65.36 kB / 436.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.582e-05/0.3796, allocations: 337.2 kB / 437.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003087/0.38, allocations: 99.75 kB / 437.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000362/0.3803, allocations: 200.9 kB / 437.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000616/0.3809, allocations: 295.8 kB / 437.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3809, allocations: 1 kB / 437.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00102/0.382, allocations: 400 kB / 438.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.382, allocations: 8.969 kB / 438.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.382, allocations: 10.06 kB / 438.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.3823, allocations: 59.58 kB / 438.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.3827, allocations: 75.73 kB / 438.3 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.3844, allocations: 2.835 MB / 441.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.3848, allocations: 28.95 kB / 441.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.3848, allocations: 11.17 kB / 441.2 MB, free: 2.414 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001838/0.385, allocations: 159 kB / 441.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.717e-05/0.3851, allocations: 28.28 kB / 441.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.193e-05/0.3852, allocations: 29.86 kB / 441.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3852, allocations: 2.5 kB / 441.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.3852, allocations: 1.219 kB / 441.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3852, allocations: 5.406 kB / 441.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004422/0.3856, allocations: 339.8 kB / 441.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3856, allocations: 0 / 441.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.3859, allocations: 40.16 kB / 441.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002013/0.3861, allocations: 60.34 kB / 441.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3861, allocations: 5.062 kB / 441.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001886/0.388, allocations: 2.833 MB / 444.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.388, allocations: 0.7031 kB / 444.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009164/0.3889, allocations: 381.7 kB / 445 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.389, allocations: 100.7 kB / 445.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.3891, allocations: 6.125 kB / 445.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.3893, allocations: 13.27 kB / 445.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.723e-05/0.3894, allocations: 18.91 kB / 445.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.3894, allocations: 9.094 kB / 445.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002671/0.3897, allocations: 198.9 kB / 445.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3897, allocations: 0 / 445.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005352/0.3902, allocations: 77.28 kB / 445.4 MB, free: 14.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.001239/0.3914, allocations: 0.9118 MB / 446.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.3927, allocations: 475.9 kB / 446.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3927, allocations: 0 / 446.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006355/0.3933, allocations: 340.7 kB / 447.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.3938, allocations: 38.12 kB / 447.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006193/0.4, allocations: 3.042 MB / 450.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000489/0.4005, allocations: 0.7781 MB / 451 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001781/0.4007, allocations: 27.05 kB / 451 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.4009, allocations: 102.9 kB / 451.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4009, allocations: 0 / 451.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04223/0.4431, allocations: 5.83 MB / 457 MB, free: 9.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.69, allocations: 25.56 kB / 457 MB, free: 9.719 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_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_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.304878398310393] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 11.773753026966006 11.792413064 11.418406923 Calling exit ...