Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001707/0.001707, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002046/0.002046, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.773 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 47.92 kB / 377.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2571, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004282/0.2614, allocations: 2.675 MB / 433.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2628, allocations: 0.7477 MB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.2629, allocations: 7.938 kB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002382/0.2632, allocations: 63.42 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.2635, allocations: 103.2 kB / 434.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.2638, allocations: 115.8 kB / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004447/0.2642, allocations: 398.5 kB / 435.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.2644, allocations: 95.33 kB / 435.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.2648, allocations: 171.3 kB / 435.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.265, allocations: 175.2 kB / 435.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.745e-05/0.2651, allocations: 32 kB / 435.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.163e-05/0.2651, allocations: 36 kB / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.839e-05/0.2652, allocations: 87.61 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.2654, allocations: 147.3 kB / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004793/0.2658, allocations: 410.7 kB / 436.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2658, allocations: 0 / 436.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2658, allocations: 0 / 436.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.2659, allocations: 0 / 436.3 MB, free: 1.391 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.001224/0.2671, allocations: 0.5869 MB / 436.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2671, allocations: 8.031 kB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.375e-05/0.2672, allocations: 70.72 kB / 437 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.721e-05/0.2673, allocations: 40.7 kB / 437 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003929/0.2677, allocations: 221.7 kB / 437.2 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.2677, allocations: 29.03 kB / 437.3 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.454e-05/0.2677, allocations: 28.38 kB / 437.3 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005972/0.2683, allocations: 302.1 kB / 437.6 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2684, allocations: 0 / 437.6 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.2684, allocations: 12 kB / 437.6 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2684, allocations: 8 kB / 437.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000653/0.269, allocations: 250.5 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.2708, allocations: 0.9204 MB / 438.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/0.2711, allocations: 150.4 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.2713, allocations: 68.81 kB / 439 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.2714, allocations: 4 kB / 439 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.2714, allocations: 38.5 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.2714, allocations: 0 / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002102/0.2735, allocations: 0.5906 MB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.2735, allocations: 55.41 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.2739, allocations: 296 kB / 440 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.2739, allocations: 33.7 kB / 440 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.2741, allocations: 232.1 kB / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.688e-05/0.2741, allocations: 79.36 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.2742, allocations: 65.66 kB / 440.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2744, allocations: 334.8 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.2747, allocations: 99.92 kB / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003934/0.2751, allocations: 199.5 kB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006689/0.2757, allocations: 305.1 kB / 441.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2757, allocations: 0 / 441.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009182/0.2767, allocations: 405 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2767, allocations: 4 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.2767, allocations: 4 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002609/0.2769, allocations: 66.02 kB / 441.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.2773, allocations: 71.89 kB / 441.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002279/0.2796, allocations: 2.63 MB / 444.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.2798, allocations: 19.98 kB / 444.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.2799, allocations: 16 kB / 444.5 MB, free: 8.66 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.000183/0.28, allocations: 161.6 kB / 444.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/0.2801, allocations: 31.94 kB / 444.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.888e-05/0.2802, allocations: 30.3 kB / 444.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.2802, allocations: 4 kB / 444.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2802, allocations: 0 / 444.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2802, allocations: 3.984 kB / 444.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003877/0.2806, allocations: 276.6 kB / 445 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2806, allocations: 4 kB / 445 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.2808, allocations: 35.97 kB / 445 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000162/0.281, allocations: 57.67 kB / 445.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.281, allocations: 8 kB / 445.1 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.283, allocations: 2.622 MB / 447.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.283, allocations: 4.031 kB / 447.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007315/0.2838, allocations: 375.7 kB / 448.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.186e-05/0.2838, allocations: 27.81 kB / 448.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.2839, allocations: 0 / 448.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.2841, allocations: 24.03 kB / 448.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.2841, allocations: 19.97 kB / 448.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.2842, allocations: 4 kB / 448.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.2844, allocations: 199.1 kB / 448.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2844, allocations: 0 / 448.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004168/0.2848, allocations: 79.94 kB / 448.4 MB, free: 4.414 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.001058/0.2859, allocations: 0.909 MB / 449.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009485/0.2868, allocations: 477 kB / 449.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2868, allocations: 0 / 449.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005138/0.2873, allocations: 339.1 kB / 450.1 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.0003485/0.2877, allocations: 29.78 kB / 450.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004492/0.2922, allocations: 3.027 MB / 453.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001704/0.2923, allocations: 176.7 kB / 453.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.2925, allocations: 30.22 kB / 453.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.2926, allocations: 99.41 kB / 453.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2926, allocations: 0 / 453.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03913/0.3317, allocations: 6.523 MB / 460 MB, free: 8.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.83, allocations: 15.69 kB / 460 MB, free: 8.734 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_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_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.282948195992503]