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.00135/0.00135, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001734/0.001734, allocations: 191.7 kB / 24.51 MB, free: 4.016 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.06 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.001529/0.001529, allocations: 43.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2509, allocations: 52.18 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004287/0.2551, allocations: 2.848 MB / 426.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.2564, allocations: 0.7438 MB / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.2566, allocations: 4 kB / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.2568, allocations: 63.38 kB / 427.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000255/0.257, allocations: 99.25 kB / 427.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.2573, allocations: 107.8 kB / 427.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004061/0.2577, allocations: 382.6 kB / 427.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.2579, allocations: 91.34 kB / 427.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.2581, allocations: 171.4 kB / 427.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.2584, allocations: 167.2 kB / 428.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.2584, allocations: 32 kB / 428.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.115e-05/0.2585, allocations: 32 kB / 428.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.2586, allocations: 79.67 kB / 428.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.2588, allocations: 171.1 kB / 428.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004439/0.2592, allocations: 399.1 kB / 428.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2592, allocations: 0 / 428.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2592, allocations: 0 / 428.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2592, allocations: 0 / 428.8 MB, free: 9.242 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.001132/0.2603, allocations: 0.5753 MB / 429.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.2604, allocations: 12.03 kB / 429.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.407e-05/0.2604, allocations: 12.84 kB / 429.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.401e-05/0.2605, allocations: 74.59 kB / 429.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.719e-05/0.2605, allocations: 40.7 kB / 429.5 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.2609, allocations: 209.9 kB / 429.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.2609, allocations: 25.03 kB / 429.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.261, allocations: 36.38 kB / 429.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005877/0.2616, allocations: 286 kB / 430 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2616, allocations: 8 kB / 430 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/0.2616, allocations: 12 kB / 430 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.2616, allocations: 8 kB / 430.1 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006277/0.2623, allocations: 250.5 kB / 430.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.2639, allocations: 1.037 MB / 431.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003703/0.2643, allocations: 145.9 kB / 431.5 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.2645, allocations: 76.72 kB / 431.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.2645, allocations: 0 / 431.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.2645, allocations: 34.56 kB / 431.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.022e-06/0.2645, allocations: 0 / 431.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002037/0.2666, allocations: 0.5969 MB / 432.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.2666, allocations: 59.34 kB / 432.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.2669, allocations: 265.8 kB / 432.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.2669, allocations: 25.7 kB / 432.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.2671, allocations: 224.1 kB / 432.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.716e-05/0.2672, allocations: 83.31 kB / 432.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.2673, allocations: 69.66 kB / 432.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.2674, allocations: 330.8 kB / 433.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.2677, allocations: 99.92 kB / 433.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/0.2681, allocations: 196.1 kB / 433.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006404/0.2687, allocations: 303 kB / 433.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2687, allocations: 0 / 433.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008669/0.2696, allocations: 389.1 kB / 434.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.2696, allocations: 8.406 kB / 434.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.2696, allocations: 8 kB / 434.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002452/0.2699, allocations: 57.66 kB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.2702, allocations: 79.83 kB / 434.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.2723, allocations: 2.627 MB / 437 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.2726, allocations: 23.98 kB / 437 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.2726, allocations: 23.98 kB / 437 MB, free: 448 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.0001664/0.2728, allocations: 145.8 kB / 437.1 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.814e-05/0.2729, allocations: 27.81 kB / 437.2 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.005e-05/0.2729, allocations: 30.27 kB / 437.2 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2729, allocations: 0 / 437.2 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.2729, allocations: 4 kB / 437.2 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.273, allocations: 0 / 437.2 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003873/0.2733, allocations: 308.4 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2733, allocations: 0 / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.2735, allocations: 43.95 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.2737, allocations: 53.62 kB / 437.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.2737, allocations: 4 kB / 437.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/0.2758, allocations: 2.634 MB / 440.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2758, allocations: 0 / 440.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007226/0.2765, allocations: 376.8 kB / 440.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.2765, allocations: 23.81 kB / 440.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.2766, allocations: 7.984 kB / 440.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.2768, allocations: 19.98 kB / 440.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.871e-05/0.2768, allocations: 19.91 kB / 440.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.2768, allocations: 7.984 kB / 440.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001834/0.277, allocations: 185.2 kB / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.277, allocations: 0 / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003865/0.2774, allocations: 72 kB / 440.9 MB, free: 12.19 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.001089/0.2785, allocations: 0.9073 MB / 441.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009591/0.2795, allocations: 476.6 kB / 442.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2795, allocations: 4.125 kB / 442.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.28, allocations: 337.2 kB / 442.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.2803, allocations: 32.41 kB / 442.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.2846, allocations: 2.936 MB / 445.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.285, allocations: 0.7713 MB / 446.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.2851, allocations: 26.28 kB / 446.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.2853, allocations: 103.4 kB / 446.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2853, allocations: 0 / 446.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/0.3206, allocations: 5.876 MB / 452.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.89, allocations: 7.578 kB / 452.4 MB, free: 0.6133 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.20846579800127] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 12.054855076014064 12.07127512 11.808926206 Calling exit ...