Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 188.3 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 43.92 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2427, allocations: 52.19 MB / 423.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004178/0.2469, allocations: 2.621 MB / 426 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.2481, allocations: 0.6972 MB / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.2482, allocations: 7.938 kB / 426.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.2484, allocations: 67.42 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.2486, allocations: 99.23 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002519/0.2489, allocations: 99.83 kB / 427 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003823/0.2493, allocations: 390.5 kB / 427.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.2494, allocations: 91.34 kB / 427.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/0.2497, allocations: 159.4 kB / 427.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.2499, allocations: 175.2 kB / 427.7 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.247e-05/0.2499, allocations: 36 kB / 427.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.723e-05/0.25, allocations: 32 kB / 427.8 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.176e-05/0.2501, allocations: 71.77 kB / 427.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.2502, allocations: 143.3 kB / 428 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.2506, allocations: 398.3 kB / 428.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.2506, allocations: 4 kB / 428.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2506, allocations: 0 / 428.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2507, allocations: 4 kB / 428.4 MB, free: 9.281 MB / 334.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.001113/0.2518, allocations: 0.5714 MB / 429 MB, free: 8.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.2518, allocations: 12.03 kB / 429 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.458e-05/0.2518, allocations: 12.83 kB / 429 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.91e-05/0.2519, allocations: 70.72 kB / 429.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.796e-05/0.252, allocations: 40.7 kB / 429.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.2523, allocations: 213.9 kB / 429.3 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.2524, allocations: 32.95 kB / 429.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.2524, allocations: 32.38 kB / 429.4 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.253, allocations: 286 kB / 429.7 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.253, allocations: 4 kB / 429.7 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.2531, allocations: 8 kB / 429.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.2531, allocations: 12 kB / 429.7 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000615/0.2537, allocations: 250.5 kB / 429.9 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.2554, allocations: 0.9282 MB / 430.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.2558, allocations: 138.6 kB / 431 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.2559, allocations: 68.72 kB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.256, allocations: 4 kB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.256, allocations: 30.56 kB / 431.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.253e-06/0.256, allocations: 0 / 431.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.00199/0.258, allocations: 0.6006 MB / 431.7 MB, free: 5.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.258, allocations: 55.34 kB / 431.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.2583, allocations: 265.8 kB / 432 MB, free: 5.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.2583, allocations: 29.7 kB / 432.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.2585, allocations: 232.1 kB / 432.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.168e-05/0.2586, allocations: 79.34 kB / 432.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.2587, allocations: 69.64 kB / 432.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.2588, allocations: 334.8 kB / 432.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.2591, allocations: 87.94 kB / 432.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003475/0.2594, allocations: 200.1 kB / 433 MB, free: 4.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006066/0.26, allocations: 302.3 kB / 433.3 MB, free: 4.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.26, allocations: 0 / 433.3 MB, free: 4.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008245/0.2609, allocations: 389.2 kB / 433.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.2609, allocations: 4 kB / 433.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.2609, allocations: 8 kB / 433.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002442/0.2611, allocations: 65.83 kB / 433.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.2615, allocations: 75.89 kB / 433.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.2637, allocations: 2.619 MB / 436.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002636/0.2639, allocations: 28.11 kB / 436.5 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.264, allocations: 15.94 kB / 436.5 MB, free: 0.6211 MB / 334.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.0001669/0.2641, allocations: 149.8 kB / 436.7 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/0.2642, allocations: 27.81 kB / 436.7 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.018e-05/0.2643, allocations: 30.27 kB / 436.7 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2643, allocations: 0 / 436.7 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.2643, allocations: 4 kB / 436.7 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2643, allocations: 0 / 436.7 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003642/0.2646, allocations: 280.6 kB / 437 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2646, allocations: 0 / 437 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.2648, allocations: 39.91 kB / 437 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/0.265, allocations: 57.69 kB / 437.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.265, allocations: 4 kB / 437.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.2671, allocations: 2.634 MB / 439.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2671, allocations: 3.938 kB / 439.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007401/0.2678, allocations: 376.9 kB / 440.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.2679, allocations: 27.73 kB / 440.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.2679, allocations: 8 kB / 440.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.2681, allocations: 11.98 kB / 440.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.2682, allocations: 19.95 kB / 440.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.2682, allocations: 8 kB / 440.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.2684, allocations: 181.2 kB / 440.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2684, allocations: 0 / 440.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004162/0.2688, allocations: 72 kB / 440.4 MB, free: 12.4 MB / 350.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.001026/0.2699, allocations: 0.907 MB / 441.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009247/0.2708, allocations: 480.1 kB / 441.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2708, allocations: 0 / 441.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005026/0.2713, allocations: 342 kB / 442.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.2716, allocations: 24.44 kB / 442.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004346/0.276, allocations: 2.947 MB / 445.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.2761, allocations: 168.8 kB / 445.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.2763, allocations: 30.3 kB / 445.3 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.2764, allocations: 103.4 kB / 445.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2764, allocations: 0 / 445.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/0.3087, allocations: 5.941 MB / 451.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.75, allocations: 5.781 kB / 451.4 MB, free: 1.391 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.013172008912079] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 11.911190917016938 11.926434419 11.672818589 Calling exit ...