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.001309/0.001309, allocations: 107.1 kB / 20.44 MB, free: 1.172 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.001743/0.001743, allocations: 206.9 kB / 23.73 MB, free: 4.375 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.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 7.805 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 59.89 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2792, allocations: 53.37 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00425/0.2834, allocations: 2.648 MB / 433.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.2849, allocations: 0.7438 MB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.285, allocations: 11.94 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.2853, allocations: 71.42 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.2855, allocations: 95.19 kB / 434.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.2858, allocations: 103.9 kB / 434.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.2862, allocations: 390.5 kB / 435.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.2864, allocations: 101 kB / 435.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/0.2867, allocations: 163.4 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.2869, allocations: 171.2 kB / 435.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.329e-05/0.2869, allocations: 36 kB / 435.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.683e-05/0.287, allocations: 32 kB / 435.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.847e-05/0.2871, allocations: 71.7 kB / 435.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.2872, allocations: 151.3 kB / 435.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004148/0.2876, allocations: 402.3 kB / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2876, allocations: 0 / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.2876, allocations: 0 / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2876, allocations: 0 / 436.2 MB, free: 1.441 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.001118/0.2888, allocations: 0.5753 MB / 436.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2888, allocations: 8.031 kB / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.724e-05/0.2889, allocations: 70.72 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.577e-05/0.2889, allocations: 44.64 kB / 436.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.2893, allocations: 218.8 kB / 437.1 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.2894, allocations: 25.03 kB / 437.2 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.2894, allocations: 28.38 kB / 437.2 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.29, allocations: 290.2 kB / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.29, allocations: 0 / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.29, allocations: 12 kB / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.29, allocations: 12 kB / 437.5 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006034/0.2906, allocations: 254.4 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.2923, allocations: 0.9205 MB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.2927, allocations: 154.5 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.2928, allocations: 64.81 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.2929, allocations: 3.984 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.2929, allocations: 38.5 kB / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.253e-06/0.2929, allocations: 0 / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001988/0.2949, allocations: 0.5866 MB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.2949, allocations: 55.41 kB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.2952, allocations: 285.6 kB / 439.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.2952, allocations: 29.7 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.2954, allocations: 232 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.367e-05/0.2955, allocations: 83.33 kB / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.2956, allocations: 69.44 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2957, allocations: 334.8 kB / 440.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.296, allocations: 95.92 kB / 440.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003562/0.2964, allocations: 196.2 kB / 440.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000643/0.297, allocations: 301.1 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.297, allocations: 0 / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008446/0.2978, allocations: 385.4 kB / 441.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.2979, allocations: 11.94 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2979, allocations: 7.938 kB / 441.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002332/0.2981, allocations: 57.67 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.2984, allocations: 75.95 kB / 441.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0022/0.3006, allocations: 2.626 MB / 444.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.3009, allocations: 24.11 kB / 444.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.3009, allocations: 16 kB / 444.4 MB, free: 8.762 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.0001611/0.3011, allocations: 157.7 kB / 444.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.457e-05/0.3011, allocations: 31.81 kB / 444.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.3012, allocations: 30.27 kB / 444.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3012, allocations: 4 kB / 444.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3012, allocations: 0 / 444.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3012, allocations: 3.984 kB / 444.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000351/0.3015, allocations: 280.6 kB / 444.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3015, allocations: 4 kB / 444.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.3018, allocations: 39.91 kB / 444.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001435/0.3019, allocations: 53.67 kB / 444.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.3019, allocations: 4 kB / 445 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002023/0.3039, allocations: 2.626 MB / 447.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3039, allocations: 0 / 447.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008172/0.3048, allocations: 376.1 kB / 447.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.66e-05/0.3048, allocations: 27.8 kB / 448 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.3048, allocations: 4 kB / 448 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.305, allocations: 19.98 kB / 448 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.07e-05/0.3051, allocations: 15.95 kB / 448 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.3051, allocations: 12 kB / 448 MB, free: 4.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001939/0.3053, allocations: 185.2 kB / 448.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3053, allocations: 0 / 448.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003862/0.3057, allocations: 72 kB / 448.3 MB, free: 4.531 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.001033/0.3067, allocations: 0.909 MB / 449.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009306/0.3077, allocations: 473 kB / 449.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3077, allocations: 3.938 kB / 449.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005302/0.3082, allocations: 343.3 kB / 450 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.3085, allocations: 26.56 kB / 450 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/0.3129, allocations: 2.958 MB / 453 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001597/0.3131, allocations: 164.8 kB / 453.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.3132, allocations: 30.27 kB / 453.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.3133, allocations: 95.41 kB / 453.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3133, allocations: 0 / 453.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05482/0.3681, allocations: 6.37 MB / 459.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.96, allocations: 0 / 459.6 MB, free: 9.078 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.402180108998436]