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.001604/0.001604, allocations: 105.1 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.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.002121/0.002121, allocations: 212.6 kB / 24.51 MB, free: 3.941 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.375/1.375, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.001395/0.001395, allocations: 47.92 kB / 378.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2468, allocations: 53.36 MB / 431.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.0041/0.2509, allocations: 2.654 MB / 434.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.2522, allocations: 0.7399 MB / 435.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.2523, allocations: 8 kB / 435.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.2525, allocations: 63.42 kB / 435.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.2528, allocations: 103.2 kB / 435.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.2531, allocations: 115.8 kB / 435.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003847/0.2534, allocations: 382.6 kB / 435.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.2536, allocations: 99.33 kB / 436 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.2539, allocations: 171.3 kB / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.2541, allocations: 163.2 kB / 436.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.077e-05/0.2542, allocations: 32 kB / 436.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.568e-05/0.2542, allocations: 32 kB / 436.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.2543, allocations: 87.62 kB / 436.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.2545, allocations: 135.4 kB / 436.6 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.2549, allocations: 402.3 kB / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2549, allocations: 4 kB / 437 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2549, allocations: 4 kB / 437 MB, free: 1.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2549, allocations: 0 / 437 MB, free: 1.457 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.001131/0.2561, allocations: 0.5714 MB / 437.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2561, allocations: 16.03 kB / 437.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.531e-05/0.2561, allocations: 8.844 kB / 437.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.994e-05/0.2562, allocations: 74.59 kB / 437.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.887e-05/0.2563, allocations: 40.7 kB / 437.7 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.2566, allocations: 214.8 kB / 437.9 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.2566, allocations: 29.03 kB / 438 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.086e-05/0.2567, allocations: 28.38 kB / 438 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005976/0.2573, allocations: 290 kB / 438.3 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2573, allocations: 7.984 kB / 438.3 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.2573, allocations: 16 kB / 438.3 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2573, allocations: 4 kB / 438.3 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006169/0.258, allocations: 250.5 kB / 438.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.2597, allocations: 0.9205 MB / 439.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/0.26, allocations: 146.5 kB / 439.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.2602, allocations: 60.83 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.2602, allocations: 7.922 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.2603, allocations: 34.56 kB / 439.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.2603, allocations: 4 kB / 439.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001987/0.2623, allocations: 0.5934 MB / 440.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.2623, allocations: 59.34 kB / 440.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000295/0.2626, allocations: 269.8 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.2626, allocations: 33.7 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.2628, allocations: 228.1 kB / 440.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.505e-05/0.2629, allocations: 83.3 kB / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.263, allocations: 73.42 kB / 441 MB, free: 13.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2631, allocations: 334.8 kB / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.2634, allocations: 95.94 kB / 441.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003445/0.2637, allocations: 192.1 kB / 441.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005996/0.2643, allocations: 301.1 kB / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.2643, allocations: 4 kB / 441.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008352/0.2652, allocations: 397 kB / 442.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.2652, allocations: 11.94 kB / 442.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2652, allocations: 0 / 442.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.2655, allocations: 66.06 kB / 442.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003206/0.2658, allocations: 75.83 kB / 442.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/0.2679, allocations: 2.622 MB / 445.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.2681, allocations: 23.94 kB / 445.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.2681, allocations: 19.94 kB / 445.1 MB, free: 8.766 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.0001592/0.2683, allocations: 149.8 kB / 445.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.2683, allocations: 23.86 kB / 445.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.95e-05/0.2684, allocations: 26.28 kB / 445.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2684, allocations: 4.062 kB / 445.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2684, allocations: 7.984 kB / 445.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2684, allocations: 0 / 445.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.2688, allocations: 280.6 kB / 445.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2688, allocations: 0 / 445.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.269, allocations: 35.97 kB / 445.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001498/0.2691, allocations: 61.61 kB / 445.7 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.2691, allocations: 8 kB / 445.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001985/0.2711, allocations: 2.614 MB / 448.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2711, allocations: 0 / 448.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000707/0.2718, allocations: 376.9 kB / 448.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.2719, allocations: 23.84 kB / 448.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.2719, allocations: 4 kB / 448.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.2721, allocations: 15.98 kB / 448.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.2722, allocations: 27.89 kB / 448.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.2722, allocations: 4 kB / 448.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.2724, allocations: 193.2 kB / 449 MB, free: 4.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2724, allocations: 0 / 449 MB, free: 4.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000362/0.2727, allocations: 72 kB / 449 MB, free: 4.551 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.001002/0.2737, allocations: 0.9069 MB / 450 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008956/0.2746, allocations: 469.6 kB / 450.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2746, allocations: 192 / 450.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005181/0.2751, allocations: 350.7 kB / 450.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003206/0.2755, allocations: 28.62 kB / 450.8 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00426/0.2797, allocations: 2.958 MB / 453.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.2799, allocations: 172.8 kB / 453.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.28, allocations: 22.28 kB / 453.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.2802, allocations: 107.4 kB / 454 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2802, allocations: 0 / 454 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03338/0.3136, allocations: 6.003 MB / 460 MB, free: 9.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.92, allocations: 4.062 kB / 460 MB, free: 9.473 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: 14.228492652066052] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 12.077675662003458 12.101484624 11.84203147 Calling exit ...