Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 111.1 kB / 20.44 MB, free: 1.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001561/0.001561, allocations: 203.1 kB / 23.73 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 230.5 MB / 257.4 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 71.89 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2533, allocations: 53.4 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004641/0.2579, allocations: 2.65 MB / 433.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.2595, allocations: 0.7399 MB / 434.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002388/0.2597, allocations: 11.94 kB / 434.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.26, allocations: 63.42 kB / 434.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003751/0.2604, allocations: 95.23 kB / 434.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003383/0.2607, allocations: 111.8 kB / 434.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005256/0.2612, allocations: 394.5 kB / 435.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.2614, allocations: 85.03 kB / 435.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003588/0.2618, allocations: 163.4 kB / 435.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.2621, allocations: 147.2 kB / 435.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-05/0.2621, allocations: 32 kB / 435.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.233e-05/0.2622, allocations: 36 kB / 435.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.256e-05/0.2623, allocations: 83.69 kB / 435.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.2624, allocations: 143.3 kB / 435.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.2629, allocations: 402.3 kB / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2629, allocations: 3.984 kB / 436.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2629, allocations: 0 / 436.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.2629, allocations: 0 / 436.3 MB, free: 1.309 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.001227/0.2641, allocations: 0.5714 MB / 436.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.2642, allocations: 15.92 kB / 436.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.908e-05/0.2643, allocations: 70.72 kB / 436.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.638e-05/0.2643, allocations: 40.64 kB / 437 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.2647, allocations: 218.8 kB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.2648, allocations: 25.03 kB / 437.2 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.424e-05/0.2648, allocations: 28.38 kB / 437.2 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006375/0.2655, allocations: 294.2 kB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.2655, allocations: 0 / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/0.2655, allocations: 16 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.2655, allocations: 8 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006318/0.2662, allocations: 250.4 kB / 437.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.268, allocations: 0.9244 MB / 438.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003986/0.2684, allocations: 149.6 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.2686, allocations: 64.83 kB / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.2686, allocations: 8 kB / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.2686, allocations: 34.55 kB / 439 MB, free: 14.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.472e-06/0.2686, allocations: 0 / 439 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002132/0.2707, allocations: 0.5972 MB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.2708, allocations: 51.41 kB / 439.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.2711, allocations: 285.6 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.2711, allocations: 29.7 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.2713, allocations: 228 kB / 440.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.961e-05/0.2713, allocations: 83.33 kB / 440.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.2714, allocations: 69.44 kB / 440.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2716, allocations: 330.8 kB / 440.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000305/0.2719, allocations: 99.92 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.2723, allocations: 196.2 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006646/0.2729, allocations: 297.1 kB / 441.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2729, allocations: 0 / 441.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008999/0.2738, allocations: 393 kB / 441.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2739, allocations: 8 kB / 441.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.2739, allocations: 4.406 kB / 441.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002611/0.2741, allocations: 65.61 kB / 441.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003332/0.2745, allocations: 67.89 kB / 441.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002281/0.2767, allocations: 2.63 MB / 444.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.277, allocations: 19.98 kB / 444.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.277, allocations: 12 kB / 444.4 MB, free: 8.641 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.0001689/0.2772, allocations: 153.7 kB / 444.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.725e-05/0.2773, allocations: 27.81 kB / 444.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.521e-05/0.2773, allocations: 38.52 kB / 444.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2774, allocations: 3.984 kB / 444.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.2774, allocations: 4 kB / 444.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2774, allocations: 7.984 kB / 444.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.2777, allocations: 276.6 kB / 444.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2777, allocations: 3.938 kB / 444.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.2779, allocations: 39.91 kB / 444.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001648/0.2781, allocations: 57.67 kB / 445 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.2781, allocations: 4 kB / 445 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002135/0.2803, allocations: 2.618 MB / 447.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2803, allocations: 0 / 447.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007539/0.281, allocations: 376.9 kB / 448 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.2811, allocations: 23.8 kB / 448 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.553e-05/0.2811, allocations: 8 kB / 448 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.2813, allocations: 15.98 kB / 448 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.295e-05/0.2814, allocations: 19.95 kB / 448 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.2814, allocations: 8 kB / 448 MB, free: 4.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.2816, allocations: 185.2 kB / 448.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2816, allocations: 0 / 448.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003777/0.282, allocations: 72 kB / 448.3 MB, free: 4.41 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.001045/0.283, allocations: 0.9122 MB / 449.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009393/0.284, allocations: 473.7 kB / 449.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.284, allocations: 0 / 449.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005293/0.2845, allocations: 341.2 kB / 450 MB, free: 2.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.2849, allocations: 31.25 kB / 450 MB, free: 2.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004428/0.2893, allocations: 2.959 MB / 453 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/0.2895, allocations: 164.8 kB / 453.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.2896, allocations: 30.36 kB / 453.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.2897, allocations: 99.41 kB / 453.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2897, allocations: 0 / 453.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04363/0.3334, allocations: 6.25 MB / 459.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.02, allocations: 15.72 kB / 459.5 MB, free: 9.027 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi in file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.519782909192145]