Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001587/0.001587, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.00159/0.00159, allocations: 184.6 kB / 24.49 MB, free: 3.961 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.381/1.381, allocations: 225.7 MB / 253.3 MB, free: 12.88 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 51.91 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.253, allocations: 52.19 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004283/0.2573, allocations: 2.656 MB / 426 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.2587, allocations: 0.6933 MB / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.2588, allocations: 4 kB / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002382/0.2591, allocations: 71.36 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.2593, allocations: 103.2 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.2596, allocations: 107.8 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004152/0.26, allocations: 398.4 kB / 427.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.2602, allocations: 95.34 kB / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.2605, allocations: 167.4 kB / 427.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.2607, allocations: 179.2 kB / 427.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.237e-05/0.2607, allocations: 32 kB / 427.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.049e-05/0.2608, allocations: 36 kB / 427.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-05/0.2609, allocations: 75.75 kB / 428 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001522/0.261, allocations: 143.3 kB / 428.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004524/0.2615, allocations: 402.3 kB / 428.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2615, allocations: 3.938 kB / 428.5 MB, free: 9.246 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2615, allocations: 0 / 428.5 MB, free: 9.246 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.2615, allocations: 0 / 428.5 MB, free: 9.246 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.001219/0.2627, allocations: 0.5909 MB / 429.1 MB, free: 8.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.2628, allocations: 12.03 kB / 429.1 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.368e-05/0.2628, allocations: 8.844 kB / 429.1 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.524e-05/0.2629, allocations: 66.72 kB / 429.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.092e-05/0.2629, allocations: 44.7 kB / 429.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.2633, allocations: 218.9 kB / 429.4 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.2634, allocations: 25.03 kB / 429.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.084e-05/0.2634, allocations: 28.38 kB / 429.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.2641, allocations: 290 kB / 429.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.2641, allocations: 0 / 429.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.2641, allocations: 16 kB / 429.8 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2641, allocations: 8 kB / 429.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006176/0.2647, allocations: 258.4 kB / 430 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2665, allocations: 0.9282 MB / 431 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.2669, allocations: 142.6 kB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.267, allocations: 64.81 kB / 431.2 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.2671, allocations: 3.906 kB / 431.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.2671, allocations: 34.56 kB / 431.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.2671, allocations: 0 / 431.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002048/0.2691, allocations: 0.5936 MB / 431.8 MB, free: 5.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.2692, allocations: 59.34 kB / 431.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.2695, allocations: 277.8 kB / 432.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.2695, allocations: 29.7 kB / 432.2 MB, free: 5.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.2697, allocations: 240 kB / 432.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.017e-05/0.2698, allocations: 79.31 kB / 432.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.2699, allocations: 61.66 kB / 432.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2701, allocations: 342.8 kB / 432.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.2703, allocations: 99.86 kB / 433 MB, free: 4.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003633/0.2707, allocations: 188.2 kB / 433.1 MB, free: 4.312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006171/0.2713, allocations: 310.3 kB / 433.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2713, allocations: 0 / 433.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008518/0.2722, allocations: 397.4 kB / 433.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.2722, allocations: 11.12 kB / 433.8 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.2722, allocations: 4 kB / 433.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002635/0.2725, allocations: 69.64 kB / 433.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.2728, allocations: 71.89 kB / 434 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.2749, allocations: 2.619 MB / 436.6 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.2752, allocations: 20.11 kB / 436.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.756e-05/0.2752, allocations: 19.94 kB / 436.6 MB, free: 0.5273 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.0001721/0.2754, allocations: 145.8 kB / 436.8 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.2755, allocations: 27.84 kB / 436.8 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.38e-05/0.2755, allocations: 34.22 kB / 436.9 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2755, allocations: 0 / 436.9 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2755, allocations: 0 / 436.9 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2755, allocations: 7.984 kB / 436.9 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003656/0.2759, allocations: 280.5 kB / 437.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2759, allocations: 0 / 437.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.2761, allocations: 43.91 kB / 437.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.2763, allocations: 53.67 kB / 437.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.2763, allocations: 8 kB / 437.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/0.2783, allocations: 2.622 MB / 439.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2783, allocations: 4 kB / 439.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007012/0.279, allocations: 382.5 kB / 440.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.899e-05/0.279, allocations: 31.8 kB / 440.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.2791, allocations: 0 / 440.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.2793, allocations: 19.97 kB / 440.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.791e-05/0.2793, allocations: 19.97 kB / 440.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2794, allocations: 4 kB / 440.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002022/0.2796, allocations: 197.2 kB / 440.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2796, allocations: 4 kB / 440.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003888/0.2799, allocations: 76 kB / 440.6 MB, free: 12.29 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.001014/0.281, allocations: 0.9108 MB / 441.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009496/0.2819, allocations: 469 kB / 441.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2819, allocations: 4.75 kB / 442 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005023/0.2824, allocations: 348.4 kB / 442.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.2828, allocations: 28.47 kB / 442.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.2871, allocations: 3.02 MB / 445.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.2873, allocations: 168.8 kB / 445.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.2874, allocations: 26.28 kB / 445.5 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.2876, allocations: 99.41 kB / 445.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2876, allocations: 0 / 445.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03423/0.3218, allocations: 6.111 MB / 451.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.77, allocations: 7.844 kB / 451.7 MB, free: 1.062 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.080885351053439] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 11.926995111978613 11.941417653 11.676977979 Calling exit ...