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.00147/0.00147, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001547/0.001547, allocations: 191.5 kB / 24.5 MB, free: 4.09 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.375/1.375, allocations: 225.7 MB / 253.3 MB, free: 13.03 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.001451/0.001451, allocations: 47.92 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.263, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004487/0.2674, allocations: 2.875 MB / 426.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2688, allocations: 0.7517 MB / 427 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.269, allocations: 4 kB / 427.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.2692, allocations: 67.38 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002687/0.2694, allocations: 103.2 kB / 427.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.2697, allocations: 99.86 kB / 427.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.2701, allocations: 406.3 kB / 427.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.2703, allocations: 91.36 kB / 427.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.2706, allocations: 167.4 kB / 428 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.2708, allocations: 175.2 kB / 428.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.106e-05/0.2709, allocations: 36 kB / 428.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.178e-05/0.2709, allocations: 32 kB / 428.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.897e-05/0.271, allocations: 79.75 kB / 428.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.2711, allocations: 175.1 kB / 428.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004621/0.2716, allocations: 407 kB / 428.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2716, allocations: 0 / 428.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2716, allocations: 0 / 428.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.2716, allocations: 3.938 kB / 428.9 MB, free: 9.141 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.001207/0.2728, allocations: 0.587 MB / 429.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2729, allocations: 12.03 kB / 429.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.369e-05/0.2729, allocations: 8.844 kB / 429.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.954e-05/0.273, allocations: 66.72 kB / 429.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.935e-05/0.273, allocations: 44.7 kB / 429.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.2734, allocations: 214.9 kB / 429.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.2734, allocations: 25.03 kB / 429.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.2735, allocations: 32.38 kB / 429.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005963/0.2741, allocations: 294 kB / 430.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2741, allocations: 0 / 430.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.2741, allocations: 12 kB / 430.1 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.2741, allocations: 8 kB / 430.1 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006213/0.2747, allocations: 254.4 kB / 430.4 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.2765, allocations: 1.056 MB / 431.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.2768, allocations: 142.6 kB / 431.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.277, allocations: 60.83 kB / 431.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.2771, allocations: 3.906 kB / 431.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.2771, allocations: 38.56 kB / 431.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.2771, allocations: 4 kB / 431.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.00205/0.2791, allocations: 0.591 MB / 432.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.2792, allocations: 59.34 kB / 432.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.2795, allocations: 273.9 kB / 432.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.2795, allocations: 29.7 kB / 432.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.2797, allocations: 236 kB / 432.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.842e-05/0.2797, allocations: 79.31 kB / 432.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.2798, allocations: 65.59 kB / 433 MB, free: 4.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.28, allocations: 338.8 kB / 433.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.2803, allocations: 99.92 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.2806, allocations: 200.1 kB / 433.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006215/0.2813, allocations: 298.3 kB / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2813, allocations: 4 kB / 433.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008481/0.2821, allocations: 393.1 kB / 434.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.2821, allocations: 8 kB / 434.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.2821, allocations: 8 kB / 434.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/0.2824, allocations: 65.95 kB / 434.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/0.2827, allocations: 71.89 kB / 434.5 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.2848, allocations: 2.627 MB / 437.1 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.2851, allocations: 23.97 kB / 437.1 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.2851, allocations: 19.94 kB / 437.1 MB, free: 292 kB / 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.000158/0.2853, allocations: 149.8 kB / 437.3 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.264e-05/0.2853, allocations: 23.86 kB / 437.3 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.092e-05/0.2854, allocations: 30.45 kB / 437.3 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2854, allocations: 7.984 kB / 437.3 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2854, allocations: 0 / 437.3 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2854, allocations: 0 / 437.3 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003802/0.2858, allocations: 308.5 kB / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2858, allocations: 0 / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002083/0.286, allocations: 47.91 kB / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000157/0.2861, allocations: 53.67 kB / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.2862, allocations: 0 / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.2881, allocations: 2.646 MB / 440.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2881, allocations: 0 / 440.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007182/0.2889, allocations: 378.5 kB / 440.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.2889, allocations: 27.84 kB / 440.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.2889, allocations: 0 / 440.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.2891, allocations: 23.92 kB / 440.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.167e-05/0.2892, allocations: 19.97 kB / 440.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.2892, allocations: 7.984 kB / 440.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001952/0.2894, allocations: 193.2 kB / 441 MB, free: 12.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2894, allocations: 0 / 441 MB, free: 12.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003724/0.2898, allocations: 72 kB / 441.1 MB, free: 12.02 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.001041/0.2908, allocations: 0.9182 MB / 442 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009309/0.2918, allocations: 480.9 kB / 442.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2918, allocations: 8.188 kB / 442.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005062/0.2923, allocations: 333.2 kB / 442.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.2926, allocations: 24.5 kB / 442.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004356/0.297, allocations: 3.022 MB / 445.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.2973, allocations: 0.7753 MB / 446.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.2974, allocations: 30.33 kB / 446.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.2976, allocations: 99.39 kB / 446.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2976, allocations: 0 / 446.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.3317, allocations: 6.017 MB / 452.8 MB, free: 248 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/11.96, allocations: 6.234 kB / 452.8 MB, free: 244 kB / 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.281046101998072] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 12.140967407962307 12.157862796 11.882752022 Calling exit ...