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.ToroidalCoreAirgap.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.001648/0.001648, allocations: 106.5 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.001541/0.001541, allocations: 213.2 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.538/1.538, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.002118/0.002118, allocations: 64.78 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3114, allocations: 53.36 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007386/0.3188, allocations: 5.106 MB / 437 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004523/0.3234, allocations: 2.193 MB / 439.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006972/0.3241, allocations: 16 kB / 439.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003715/0.3278, allocations: 1.41 MB / 440.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00188/0.3296, allocations: 429.3 kB / 441.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003082/0.3327, allocations: 1.217 MB / 442.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001825/0.3346, allocations: 0.7395 MB / 443 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001571/0.3361, allocations: 0.5714 MB / 443.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008428/0.337, allocations: 346.8 kB / 443.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007756/0.3377, allocations: 430.3 kB / 444.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002611/0.338, allocations: 68 kB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001395/0.3394, allocations: 407.6 kB / 444.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002436/0.3396, allocations: 171.4 kB / 445 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005671/0.3402, allocations: 378.2 kB / 445.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002448/0.3427, allocations: 1.203 MB / 446.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3427, allocations: 0 / 446.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3427, allocations: 0 / 446.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.356e-05/0.3427, allocations: 0 / 446.6 MB, free: 8.215 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.005076/0.3478, allocations: 1.406 MB / 448 MB, free: 6.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3478, allocations: 12.03 kB / 448 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002237/0.3481, allocations: 135.4 kB / 448.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002686/0.3507, allocations: 360.1 kB / 448.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.3511, allocations: 198.3 kB / 448.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.366e-05/0.3512, allocations: 58.38 kB / 448.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002369/0.3514, allocations: 92.31 kB / 448.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.3535, allocations: 0.872 MB / 449.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.3535, allocations: 3.953 kB / 449.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.722e-05/0.3536, allocations: 39.98 kB / 449.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.3537, allocations: 20 kB / 449.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.3557, allocations: 0.7925 MB / 450.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005379/0.3611, allocations: 2.775 MB / 453.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.3623, allocations: 0.5176 MB / 453.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005401/0.3628, allocations: 214.2 kB / 454 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.3629, allocations: 28.47 kB / 454.1 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.363, allocations: 47.05 kB / 454.1 MB, free: 412 kB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.687e-06/0.363, allocations: 0 / 454.1 MB, free: 412 kB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007567/0.3705, allocations: 2.163 MB / 456.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.3706, allocations: 85.61 kB / 456.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.3711, allocations: 308.3 kB / 456.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.004e-05/0.3711, allocations: 33.7 kB / 456.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.3714, allocations: 375.9 kB / 457.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.3717, allocations: 218.1 kB / 457.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002713/0.3719, allocations: 146.6 kB / 457.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.3721, allocations: 354.7 kB / 457.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007644/0.3729, allocations: 265.8 kB / 458 MB, free: 12.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009538/0.3738, allocations: 0.5051 MB / 458.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001812/0.3756, allocations: 0.8049 MB / 459.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/0.3756, allocations: 7.984 kB / 459.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002219/0.3779, allocations: 0.893 MB / 460.2 MB, free: 9.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.3779, allocations: 8 kB / 460.2 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.3779, allocations: 7.938 kB / 460.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002988/0.3782, allocations: 73.92 kB / 460.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008948/0.3791, allocations: 203.7 kB / 460.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.3817, allocations: 2.661 MB / 463.2 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007809/0.3825, allocations: 60.02 kB / 463.2 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.3826, allocations: 39.98 kB / 463.3 MB, free: 6.684 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.0004551/0.3831, allocations: 209.6 kB / 463.5 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3832, allocations: 51.59 kB / 463.5 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/0.3853, allocations: 0.7259 MB / 464.3 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3853, allocations: 8 kB / 464.3 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3853, allocations: 0 / 464.3 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3853, allocations: 3.984 kB / 464.3 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003016/0.3883, allocations: 1.38 MB / 465.6 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3883, allocations: 0 / 465.6 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006685/0.389, allocations: 135.8 kB / 465.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002131/0.3892, allocations: 57.67 kB / 465.8 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/0.3892, allocations: 15.98 kB / 465.9 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.3915, allocations: 2.647 MB / 468.5 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3915, allocations: 7.984 kB / 468.5 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.394, allocations: 1.082 MB / 469.6 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.3943, allocations: 91.75 kB / 469.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.3e-05/0.3944, allocations: 15.94 kB / 469.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004995/0.3949, allocations: 39.95 kB / 469.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.395, allocations: 44.41 kB / 469.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.3951, allocations: 23.98 kB / 469.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002676/0.3953, allocations: 211.1 kB / 470 MB, free: 15.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3953, allocations: 0 / 470 MB, free: 15.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008297/0.3962, allocations: 176 kB / 470.2 MB, free: 15.45 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.00313/0.3993, allocations: 1.672 MB / 471.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.4014, allocations: 0.8689 MB / 472.7 MB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4014, allocations: 4.188 kB / 472.7 MB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.4024, allocations: 0.5234 MB / 473.2 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.4029, allocations: 50.66 kB / 473.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.4131, allocations: 5.098 MB / 478.4 MB, free: 6.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007242/0.4138, allocations: 0.881 MB / 479.3 MB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004267/0.4142, allocations: 84.5 kB / 479.4 MB, free: 5.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003857/0.4146, allocations: 227.3 kB / 479.6 MB, free: 5.652 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4146, allocations: 4 kB / 479.6 MB, free: 5.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05252/0.4671, allocations: 11.8 MB / 491.4 MB, free: 9.988 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/13.76, allocations: 14.81 kB / 491.4 MB, free: 9.977 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_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_ToroidalCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.266435857862234] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 13.853905794210732 13.871641284 13.52556023 Calling exit ...