Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001286/0.001286, allocations: 112.2 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.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.001456/0.001456, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.36/1.36, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 43.92 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2568, allocations: 53.37 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004499/0.2613, allocations: 2.85 MB / 434.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.2628, allocations: 0.8022 MB / 435.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.2629, allocations: 4 kB / 435.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000226/0.2632, allocations: 63.42 kB / 435.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002722/0.2634, allocations: 103.1 kB / 435.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.2637, allocations: 119.7 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.2641, allocations: 382.6 kB / 436.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.2643, allocations: 95.33 kB / 436.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000297/0.2646, allocations: 167.4 kB / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.2648, allocations: 167.2 kB / 436.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.045e-05/0.2649, allocations: 36 kB / 436.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.095e-05/0.265, allocations: 32 kB / 436.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.342e-05/0.265, allocations: 79.69 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.2652, allocations: 171.1 kB / 437 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004467/0.2656, allocations: 403.1 kB / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2656, allocations: 0 / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2656, allocations: 0 / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.2656, allocations: 0 / 437.4 MB, free: 1.387 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.001193/0.2668, allocations: 0.5792 MB / 437.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.2669, allocations: 8.031 kB / 437.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.614e-05/0.2669, allocations: 8.844 kB / 438 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.661e-05/0.267, allocations: 74.66 kB / 438 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.2671, allocations: 36.7 kB / 438.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.2675, allocations: 222.8 kB / 438.3 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.2675, allocations: 24.97 kB / 438.3 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.933e-05/0.2675, allocations: 32.38 kB / 438.3 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.2681, allocations: 294 kB / 438.6 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2682, allocations: 0 / 438.6 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.2682, allocations: 12 kB / 438.6 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.2682, allocations: 8 kB / 438.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006262/0.2688, allocations: 246.5 kB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.2705, allocations: 1.049 MB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/0.2709, allocations: 150.5 kB / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.2711, allocations: 56.83 kB / 440.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.2712, allocations: 7.984 kB / 440.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.2712, allocations: 34.56 kB / 440.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.2712, allocations: 0 / 440.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002079/0.2733, allocations: 0.5927 MB / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.2733, allocations: 55.34 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.2736, allocations: 269.8 kB / 441.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.2736, allocations: 37.64 kB / 441.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.2738, allocations: 236 kB / 441.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/0.2739, allocations: 79.31 kB / 441.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.274, allocations: 69.44 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2741, allocations: 338.8 kB / 441.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/0.2744, allocations: 91.94 kB / 441.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.2748, allocations: 196.1 kB / 442.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006296/0.2754, allocations: 301.1 kB / 442.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2754, allocations: 4 kB / 442.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008425/0.2763, allocations: 397.4 kB / 442.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2763, allocations: 4 kB / 442.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.2763, allocations: 4 kB / 442.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.2765, allocations: 57.67 kB / 442.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.2768, allocations: 87.77 kB / 442.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.2791, allocations: 2.622 MB / 445.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/0.2793, allocations: 27.88 kB / 445.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.2793, allocations: 23.92 kB / 445.6 MB, free: 8.551 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.0001722/0.2795, allocations: 145.8 kB / 445.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.153e-05/0.2796, allocations: 23.86 kB / 445.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.084e-05/0.2796, allocations: 34.33 kB / 445.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2796, allocations: 4 kB / 445.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.2796, allocations: 0 / 445.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2796, allocations: 0 / 445.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003788/0.28, allocations: 308.5 kB / 446.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.28, allocations: 0 / 446.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.2802, allocations: 39.95 kB / 446.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/0.2804, allocations: 57.62 kB / 446.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.2804, allocations: 4 kB / 446.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.2825, allocations: 2.634 MB / 448.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2825, allocations: 0 / 448.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007444/0.2832, allocations: 377 kB / 449.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/0.2833, allocations: 27.83 kB / 449.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.2833, allocations: 8 kB / 449.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.2835, allocations: 15.98 kB / 449.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.2836, allocations: 19.89 kB / 449.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.2836, allocations: 8 kB / 449.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002743/0.2839, allocations: 185.2 kB / 449.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2839, allocations: 4 kB / 449.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003736/0.2842, allocations: 72 kB / 449.6 MB, free: 4.297 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.001049/0.2853, allocations: 0.9087 MB / 450.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009404/0.2862, allocations: 479.3 kB / 450.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2862, allocations: 0 / 450.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/0.2868, allocations: 342 kB / 451.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.2871, allocations: 32.48 kB / 451.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004458/0.2915, allocations: 2.95 MB / 454.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.292, allocations: 0.7752 MB / 455 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.2921, allocations: 30.27 kB / 455.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.2923, allocations: 99.41 kB / 455.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2923, allocations: 0 / 455.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03366/0.3259, allocations: 5.919 MB / 461.1 MB, free: 8.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.71, allocations: 4.062 kB / 461.1 MB, free: 8.664 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.956607637053821] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 11.872863953991327 11.88806292 11.61909768 Calling exit ...