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.001378/0.001378, allocations: 120.4 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.001448/0.001448, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.471/1.471, allocations: 230.5 MB / 254.7 MB, free: 14.99 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.001868/0.001868, allocations: 67.83 kB / 373.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1124, allocations: 53.32 MB / 426.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.2258/0.3383, allocations: 5.106 MB / 432 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003321/0.3416, allocations: 2.182 MB / 434.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003045/0.3419, allocations: 16.44 kB / 434.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002622/0.3445, allocations: 1.416 MB / 435.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.3455, allocations: 425.5 kB / 436 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002026/0.3476, allocations: 1.214 MB / 437.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008831/0.3485, allocations: 0.746 MB / 438 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007729/0.3492, allocations: 0.5026 MB / 438.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004616/0.3497, allocations: 341.2 kB / 438.8 MB, free: 6.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004457/0.3501, allocations: 433.6 kB / 439.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.555e-05/0.3502, allocations: 67.62 kB / 439.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009557/0.3512, allocations: 412.3 kB / 439.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.3513, allocations: 166.1 kB / 439.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003314/0.3516, allocations: 383.6 kB / 440.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001719/0.3534, allocations: 1.222 MB / 441.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3534, allocations: 4 kB / 441.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3534, allocations: 1.5 kB / 441.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.3534, allocations: 0 / 441.5 MB, free: 5.066 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.004348/0.3577, allocations: 1.491 MB / 443 MB, free: 4.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3578, allocations: 8.938 kB / 443 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.3579, allocations: 130.7 kB / 443.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002638/0.3606, allocations: 358.6 kB / 443.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.3608, allocations: 264 kB / 443.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.126e-05/0.3609, allocations: 64.03 kB / 443.8 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.361, allocations: 87.78 kB / 443.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.3626, allocations: 0.8727 MB / 444.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.3626, allocations: 4.984 kB / 444.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.019e-05/0.3627, allocations: 34.44 kB / 444.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.3627, allocations: 20.61 kB / 444.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.3645, allocations: 0.7915 MB / 445.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004095/0.3686, allocations: 3.021 MB / 448.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3696, allocations: 0.9667 MB / 449.6 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004655/0.3701, allocations: 216.9 kB / 449.8 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/0.3702, allocations: 178 kB / 450 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.3703, allocations: 39.84 kB / 450 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 3.296e-06/0.3703, allocations: 1.359 kB / 450 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007388/0.3777, allocations: 2.398 MB / 452.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.3777, allocations: 84.91 kB / 452.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.3781, allocations: 323.3 kB / 452.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/0.3782, allocations: 40.33 kB / 452.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.3785, allocations: 372.1 kB / 453.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.3787, allocations: 222.9 kB / 453.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.3789, allocations: 149.6 kB / 453.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3791, allocations: 352.2 kB / 453.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000727/0.3798, allocations: 272 kB / 454.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009011/0.3807, allocations: 0.5024 MB / 454.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.3823, allocations: 0.8059 MB / 455.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3823, allocations: 2.656 kB / 455.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00202/0.3843, allocations: 0.8996 MB / 456.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.3844, allocations: 13.61 kB / 456.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3844, allocations: 8.156 kB / 456.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.3846, allocations: 70.83 kB / 456.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/0.3855, allocations: 201.3 kB / 456.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/0.3879, allocations: 2.871 MB / 459.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006745/0.3885, allocations: 60.95 kB / 459.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.519e-05/0.3886, allocations: 39.42 kB / 459.6 MB, free: 9.32 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.0003463/0.3889, allocations: 214.3 kB / 459.8 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.389, allocations: 44.47 kB / 459.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001972/0.391, allocations: 0.7262 MB / 460.6 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.391, allocations: 5.594 kB / 460.6 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.391, allocations: 1.094 kB / 460.6 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.391, allocations: 13.05 kB / 460.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.3938, allocations: 1.411 MB / 462 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3938, allocations: 0 / 462 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006447/0.3944, allocations: 133.2 kB / 462.2 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001908/0.3946, allocations: 60.67 kB / 462.2 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.52e-05/0.3946, allocations: 20.33 kB / 462.3 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/0.397, allocations: 2.847 MB / 465.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.397, allocations: 3.938 kB / 465.1 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.3995, allocations: 1.074 MB / 466.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002751/0.3998, allocations: 170.8 kB / 466.3 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/0.3999, allocations: 18.38 kB / 466.4 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004839/0.4004, allocations: 43.2 kB / 466.4 MB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.4005, allocations: 46.12 kB / 466.5 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-05/0.4005, allocations: 19.89 kB / 466.5 MB, free: 3.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002697/0.4008, allocations: 217.9 kB / 466.7 MB, free: 3.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4008, allocations: 0 / 466.7 MB, free: 3.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008443/0.4016, allocations: 178.8 kB / 466.9 MB, free: 3.773 MB / 366.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.003011/0.4046, allocations: 1.679 MB / 468.5 MB, free: 2.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002109/0.4068, allocations: 0.8763 MB / 469.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4068, allocations: 0 / 469.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.4078, allocations: 0.5294 MB / 469.9 MB, free: 1.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.4082, allocations: 53.69 kB / 470 MB, free: 1.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009352/0.4176, allocations: 5.155 MB / 475.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005311/0.4181, allocations: 0.8814 MB / 476 MB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003904/0.4185, allocations: 91 kB / 476.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000358/0.4188, allocations: 224.3 kB / 476.3 MB, free: 12.97 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4188, allocations: 3.938 kB / 476.3 MB, free: 12.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0513/0.4702, allocations: 11.53 MB / 487.9 MB, free: 2.543 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.27, allocations: 19.33 kB / 487.9 MB, free: 2.527 MB / 382.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 --stepSize=0.0001 --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.682571314740926] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 13.360482353717089 13.380233296 13.023973706 Calling exit ...