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.001186/0.001186, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009076/0.0009076, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9128/0.9128, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 2.274e-06/2.274e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.211e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002927/0.002949, allocations: 2.673 MB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.004362, allocations: 0.7632 MB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.004497, allocations: 8 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002039/0.004701, allocations: 67.38 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.004961, allocations: 107.1 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.005198, allocations: 103.8 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003184/0.005516, allocations: 418.8 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.005736, allocations: 98.97 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003497/0.006085, allocations: 235.5 kB / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.006221, allocations: 131.6 kB / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.006261, allocations: 36 kB / 329.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.152e-05/0.006293, allocations: 32 kB / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.488e-05/0.006338, allocations: 75.67 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.659e-05/0.006424, allocations: 127.7 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.006748, allocations: 414.6 kB / 329.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.006752, allocations: 0 / 329.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.006753, allocations: 4 kB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.00676, allocations: 0 / 329.8 MB, free: 10.66 MB / 298.7 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.0007991/0.007559, allocations: 0.5791 MB / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.007608, allocations: 12.03 kB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.974e-05/0.007668, allocations: 66.72 kB / 330.5 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.00772, allocations: 40.7 kB / 330.5 MB, free: 9.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.008069, allocations: 221.1 kB / 330.7 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.008098, allocations: 21.03 kB / 330.8 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.594e-05/0.008144, allocations: 32.38 kB / 330.8 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004439/0.008588, allocations: 286.6 kB / 331.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.008601, allocations: 4.188 kB / 331.1 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.008626, allocations: 12.12 kB / 331.1 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.008635, allocations: 12 kB / 331.1 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003963/0.009032, allocations: 258.4 kB / 331.4 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.01028, allocations: 0.9254 MB / 332.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002691/0.01055, allocations: 142.6 kB / 332.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.01065, allocations: 60.83 kB / 332.5 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.01068, allocations: 4 kB / 332.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.0107, allocations: 38.5 kB / 332.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 2.424e-06/0.0107, allocations: 0 / 332.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001306/0.01201, allocations: 0.6019 MB / 333.1 MB, free: 7.191 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.01206, allocations: 55.41 kB / 333.2 MB, free: 7.125 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.0123, allocations: 284.1 kB / 333.5 MB, free: 6.836 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.01232, allocations: 29.7 kB / 333.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.01243, allocations: 236 kB / 333.7 MB, free: 6.566 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.114e-05/0.01247, allocations: 91.25 kB / 333.8 MB, free: 6.477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.726e-05/0.01255, allocations: 61.59 kB / 333.9 MB, free: 6.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.01264, allocations: 342.8 kB / 334.2 MB, free: 6.066 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.01281, allocations: 99.86 kB / 334.3 MB, free: 5.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.01301, allocations: 196 kB / 334.5 MB, free: 5.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.01337, allocations: 306.1 kB / 334.8 MB, free: 5.391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.01338, allocations: 0 / 334.8 MB, free: 5.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008148/0.01419, allocations: 401.2 kB / 335.2 MB, free: 4.988 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.01421, allocations: 8 kB / 335.2 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.01422, allocations: 4 kB / 335.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000198/0.01442, allocations: 65.8 kB / 335.3 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.0146, allocations: 71.89 kB / 335.3 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.01604, allocations: 2.622 MB / 337.9 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.01619, allocations: 24.05 kB / 338 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.01621, allocations: 12 kB / 338 MB, free: 1.945 MB / 298.7 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.000132/0.01634, allocations: 153.7 kB / 338.1 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.142e-05/0.01637, allocations: 27.81 kB / 338.2 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.01642, allocations: 34.3 kB / 338.2 MB, free: 1.723 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01642, allocations: 0 / 338.2 MB, free: 1.723 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.01643, allocations: 4 kB / 338.2 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.01644, allocations: 7.984 kB / 338.2 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.01668, allocations: 276.6 kB / 338.5 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01668, allocations: 0 / 338.5 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.01678, allocations: 39.91 kB / 338.5 MB, free: 1.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001269/0.01691, allocations: 57.81 kB / 338.6 MB, free: 1.297 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.01693, allocations: 7.984 kB / 338.6 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00142/0.01835, allocations: 2.618 MB / 341.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.01835, allocations: 3.984 kB / 341.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004519/0.0188, allocations: 380 kB / 341.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.408e-05/0.01883, allocations: 19.81 kB / 341.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.01886, allocations: 11.94 kB / 341.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.726e-05/0.01895, allocations: 19.97 kB / 341.6 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.01902, allocations: 15.97 kB / 341.6 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.01903, allocations: 4 kB / 341.6 MB, free: 13.97 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005239/0.01955, allocations: 207.1 kB / 341.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.01955, allocations: 0 / 341.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002983/0.01985, allocations: 79.94 kB / 341.9 MB, free: 13.69 MB / 314.7 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.0005949/0.02044, allocations: 0.909 MB / 342.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005797/0.02102, allocations: 472.8 kB / 343.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.02102, allocations: 256 / 343.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002515/0.02128, allocations: 341.2 kB / 343.6 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.02156, allocations: 32.45 kB / 343.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.02456, allocations: 3.031 MB / 346.7 MB, free: 8.672 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001215/0.02468, allocations: 168.8 kB / 346.9 MB, free: 8.488 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.006e-05/0.02477, allocations: 30.28 kB / 346.9 MB, free: 8.457 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.02489, allocations: 104.5 kB / 347 MB, free: 8.355 MB / 314.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02489, allocations: 0 / 347 MB, free: 8.355 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02565/0.05054, allocations: 6.57 MB / 353.6 MB, free: 1.996 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.308/7.359, allocations: 7.859 kB / 353.6 MB, free: 1.988 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/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: 9.106594980694354]