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.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.001686/0.001686, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.002031/0.002031, allocations: 220.9 kB / 23 MB, free: 5.613 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.444/1.444, allocations: 230.4 MB / 256.5 MB, free: 8.242 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_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.001912/0.001912, allocations: 75.81 kB / 376.2 MB, free: 3.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3074, allocations: 53.31 MB / 429.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007268/0.3146, allocations: 5.144 MB / 434.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004285/0.3189, allocations: 2.179 MB / 436.9 MB, free: 32 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000565/0.3195, allocations: 20 kB / 436.9 MB, free: 12 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003539/0.323, allocations: 1.414 MB / 438.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.3245, allocations: 425.4 kB / 438.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002629/0.3271, allocations: 1.212 MB / 439.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.3283, allocations: 0.7472 MB / 440.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008904/0.3292, allocations: 0.5045 MB / 441.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004791/0.3297, allocations: 342.8 kB / 441.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000501/0.3302, allocations: 426.3 kB / 441.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.729e-05/0.3303, allocations: 68 kB / 442 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009179/0.3312, allocations: 411.7 kB / 442.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.3314, allocations: 171.4 kB / 442.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000392/0.3318, allocations: 386.1 kB / 442.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001738/0.3335, allocations: 1.211 MB / 444.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.3335, allocations: 8 kB / 444.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3335, allocations: 0 / 444.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.3335, allocations: 0 / 444.2 MB, free: 8.711 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.004368/0.3379, allocations: 1.485 MB / 445.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3379, allocations: 8.031 kB / 445.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.3381, allocations: 139.3 kB / 445.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002491/0.3406, allocations: 364.1 kB / 446.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.3409, allocations: 263.4 kB / 446.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.955e-05/0.341, allocations: 62.38 kB / 446.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.3411, allocations: 84.12 kB / 446.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.3429, allocations: 0.8719 MB / 447.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.523e-05/0.343, allocations: 7.953 kB / 447.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.061e-05/0.343, allocations: 36 kB / 447.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.3431, allocations: 20 kB / 447.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.3449, allocations: 0.7886 MB / 448.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004796/0.3497, allocations: 3.03 MB / 451.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.3511, allocations: 0.9572 MB / 452.3 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005282/0.3516, allocations: 218.5 kB / 452.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000191/0.3518, allocations: 182.5 kB / 452.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.3518, allocations: 39.12 kB / 452.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.234e-06/0.3518, allocations: 0 / 452.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007311/0.3591, allocations: 2.405 MB / 455.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/0.3592, allocations: 85.67 kB / 455.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.3596, allocations: 324.3 kB / 455.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.3596, allocations: 33.7 kB / 455.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002653/0.3599, allocations: 375.9 kB / 455.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3601, allocations: 222.1 kB / 456.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.3603, allocations: 146.6 kB / 456.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3605, allocations: 354.7 kB / 456.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000748/0.3612, allocations: 269.8 kB / 456.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009741/0.3622, allocations: 0.5081 MB / 457.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/0.364, allocations: 0.7998 MB / 458.2 MB, free: 9.855 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.364, allocations: 4 kB / 458.2 MB, free: 9.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002146/0.3661, allocations: 0.9028 MB / 459.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3661, allocations: 11.94 kB / 459.1 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.3662, allocations: 8 kB / 459.1 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002716/0.3664, allocations: 73.66 kB / 459.2 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008305/0.3673, allocations: 199.6 kB / 459.4 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.3697, allocations: 2.861 MB / 462.2 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006484/0.3704, allocations: 59.91 kB / 462.3 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.968e-05/0.3704, allocations: 35.98 kB / 462.3 MB, free: 5.41 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.0003194/0.3708, allocations: 217.7 kB / 462.5 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.349e-05/0.3709, allocations: 43.7 kB / 462.6 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.3728, allocations: 0.7235 MB / 463.3 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3728, allocations: 11.94 kB / 463.3 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3728, allocations: 0 / 463.3 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.3728, allocations: 11.92 kB / 463.3 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002757/0.3755, allocations: 1.409 MB / 464.7 MB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.3755, allocations: 4 kB / 464.7 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000638/0.3762, allocations: 131.8 kB / 464.9 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001993/0.3764, allocations: 65.66 kB / 464.9 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.3764, allocations: 12 kB / 464.9 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002433/0.3788, allocations: 2.857 MB / 467.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3788, allocations: 3.938 kB / 467.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002564/0.3814, allocations: 1.079 MB / 468.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.3816, allocations: 168.7 kB / 469 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.909e-05/0.3817, allocations: 16.06 kB / 469.1 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004901/0.3822, allocations: 47.94 kB / 469.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.3823, allocations: 40.5 kB / 469.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.023e-05/0.3824, allocations: 19.98 kB / 469.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002704/0.3826, allocations: 227 kB / 469.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3826, allocations: 0 / 469.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007456/0.3834, allocations: 176 kB / 469.6 MB, free: 13.76 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.003111/0.3865, allocations: 1.686 MB / 471.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002126/0.3886, allocations: 0.8811 MB / 472.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3886, allocations: 0 / 472.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3896, allocations: 0.5199 MB / 472.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.3901, allocations: 53.02 kB / 472.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009947/0.4, allocations: 5.152 MB / 477.8 MB, free: 5.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005898/0.4006, allocations: 0.881 MB / 478.7 MB, free: 4.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.401, allocations: 88.5 kB / 478.8 MB, free: 4.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/0.4014, allocations: 227.3 kB / 479 MB, free: 3.867 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4014, allocations: 0 / 479 MB, free: 3.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05034/0.4517, allocations: 11.52 MB / 490.6 MB, free: 8.504 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/13.1, allocations: 3.453 kB / 490.6 MB, free: 8.504 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.468832054990344] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 13.196109180978965 13.212333147 12.875263729 Calling exit ...