Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 105.1 kB / 21.21 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 212.5 kB / 24.51 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 7.984 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 47.92 kB / 378.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2496, allocations: 53.36 MB / 431.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004043/0.2536, allocations: 2.676 MB / 434.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.255, allocations: 0.7516 MB / 435.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.2551, allocations: 8 kB / 435.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002191/0.2553, allocations: 67.38 kB / 435.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.2556, allocations: 107.2 kB / 435.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.2559, allocations: 103.8 kB / 435.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004043/0.2563, allocations: 402.5 kB / 436 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.2565, allocations: 99.33 kB / 436.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002993/0.2568, allocations: 171.3 kB / 436.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002208/0.257, allocations: 167.2 kB / 436.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.784e-05/0.2571, allocations: 36 kB / 436.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.826e-05/0.2571, allocations: 32 kB / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.395e-05/0.2572, allocations: 83.69 kB / 436.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.2573, allocations: 147.3 kB / 436.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.2578, allocations: 414.2 kB / 437.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2578, allocations: 0 / 437.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2578, allocations: 4 kB / 437.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2578, allocations: 0 / 437.1 MB, free: 1.406 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.001202/0.259, allocations: 0.583 MB / 437.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.259, allocations: 12.03 kB / 437.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.225e-05/0.259, allocations: 12.84 kB / 437.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.87e-05/0.2591, allocations: 70.66 kB / 437.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.789e-05/0.2592, allocations: 40.7 kB / 437.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.2595, allocations: 221.7 kB / 438 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.2596, allocations: 21.03 kB / 438 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.2596, allocations: 32.38 kB / 438.1 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.2602, allocations: 294 kB / 438.4 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.2602, allocations: 0 / 438.4 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.2603, allocations: 16 kB / 438.4 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2603, allocations: 8 kB / 438.4 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006211/0.2609, allocations: 250.5 kB / 438.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.2625, allocations: 0.9283 MB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.2629, allocations: 146.5 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.2631, allocations: 64.81 kB / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.2631, allocations: 0 / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.2632, allocations: 38.56 kB / 439.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.012e-06/0.2632, allocations: 0 / 439.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001976/0.2651, allocations: 0.5984 MB / 440.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.2652, allocations: 55.34 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.2655, allocations: 288.1 kB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.2655, allocations: 29.7 kB / 440.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.2656, allocations: 232 kB / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.233e-05/0.2657, allocations: 91.31 kB / 441.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.2658, allocations: 57.7 kB / 441.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.266, allocations: 334.8 kB / 441.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.2663, allocations: 99.86 kB / 441.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003606/0.2666, allocations: 199.9 kB / 441.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006187/0.2672, allocations: 306.1 kB / 442.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.2672, allocations: 4 kB / 442.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008495/0.2681, allocations: 397.2 kB / 442.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2681, allocations: 8 kB / 442.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2681, allocations: 4 kB / 442.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002652/0.2684, allocations: 61.92 kB / 442.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.2687, allocations: 75.83 kB / 442.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002171/0.2709, allocations: 2.626 MB / 445.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.2712, allocations: 23.98 kB / 445.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.2712, allocations: 11.94 kB / 445.3 MB, free: 8.676 MB / 350.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.0001654/0.2713, allocations: 153.7 kB / 445.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.169e-05/0.2714, allocations: 27.81 kB / 445.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.215e-05/0.2715, allocations: 34.3 kB / 445.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2715, allocations: 0 / 445.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2715, allocations: 8.062 kB / 445.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2715, allocations: 3.984 kB / 445.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000345/0.2718, allocations: 280.6 kB / 445.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2718, allocations: 0 / 445.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.272, allocations: 35.97 kB / 445.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001578/0.2722, allocations: 61.75 kB / 445.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.2722, allocations: 8 kB / 445.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002006/0.2742, allocations: 2.618 MB / 448.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2742, allocations: 0 / 448.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007177/0.2749, allocations: 383 kB / 448.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/0.275, allocations: 19.81 kB / 448.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.275, allocations: 11.94 kB / 448.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.2752, allocations: 19.97 kB / 448.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.19e-05/0.2753, allocations: 15.97 kB / 448.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.2753, allocations: 4 kB / 448.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.2755, allocations: 211 kB / 449.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2755, allocations: 0 / 449.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003745/0.2759, allocations: 72 kB / 449.2 MB, free: 4.43 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.001013/0.2769, allocations: 0.9103 MB / 450.1 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009268/0.2778, allocations: 472.2 kB / 450.6 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2778, allocations: 4.062 kB / 450.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.2783, allocations: 341.2 kB / 450.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.2787, allocations: 32.91 kB / 450.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004375/0.283, allocations: 3.034 MB / 454 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00016/0.2832, allocations: 176.7 kB / 454.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00013/0.2833, allocations: 30.27 kB / 454.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.2835, allocations: 99.41 kB / 454.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2835, allocations: 0 / 454.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03199/0.3155, allocations: 6.169 MB / 460.4 MB, free: 9.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.88, allocations: 11.92 kB / 460.4 MB, free: 9.117 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.174022185034119] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 12.034638650948182 12.048861774 11.78824081 Calling exit ...