Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007881/0.0007881, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000779/0.000779, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8618/0.8618, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.748e-05/1.917e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002997/0.003016, allocations: 2.644 MB / 321.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.004118, allocations: 0.7165 MB / 321.8 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.004282, allocations: 12 kB / 321.8 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.004517, allocations: 63.42 kB / 321.9 MB, free: 2.902 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.00475, allocations: 107.1 kB / 322 MB, free: 2.797 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.004978, allocations: 111.7 kB / 322.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.005283, allocations: 422.2 kB / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.005431, allocations: 87.34 kB / 322.6 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.005684, allocations: 235.5 kB / 322.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.005811, allocations: 127.6 kB / 322.9 MB, free: 1.832 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.393e-05/0.005855, allocations: 36 kB / 323 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.024e-05/0.005885, allocations: 32 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.397e-05/0.005929, allocations: 79.67 kB / 323.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004157/0.006345, allocations: 127.6 kB / 323.2 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.006648, allocations: 410.7 kB / 323.6 MB, free: 1.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.00665, allocations: 0 / 323.6 MB, free: 1.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.006652, allocations: 4 kB / 323.6 MB, free: 1.156 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.006658, allocations: 0 / 323.6 MB, free: 1.156 MB / 282.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.0008406/0.007499, allocations: 0.5675 MB / 324.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.007542, allocations: 12.92 kB / 324.2 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.434e-05/0.007596, allocations: 70.72 kB / 324.3 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.432e-05/0.007651, allocations: 40.7 kB / 324.3 MB, free: 440 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.00797, allocations: 218.1 kB / 324.5 MB, free: 192 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.007997, allocations: 29.03 kB / 324.5 MB, free: 160 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.008035, allocations: 28.38 kB / 324.6 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.008526, allocations: 294.7 kB / 324.9 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.008539, allocations: 192 / 324.9 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.008565, allocations: 20.12 kB / 324.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.008575, allocations: 12 kB / 324.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.008951, allocations: 246.5 kB / 325.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.01011, allocations: 0.9253 MB / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.01036, allocations: 142.6 kB / 326.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.01046, allocations: 64.81 kB / 326.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.01048, allocations: 4 kB / 326.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.0105, allocations: 34.5 kB / 326.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 2.244e-06/0.01051, allocations: 0 / 326.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001278/0.01179, allocations: 0.602 MB / 326.9 MB, free: 13.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.01183, allocations: 51.41 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.01206, allocations: 281.8 kB / 327.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.01208, allocations: 33.69 kB / 327.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.0122, allocations: 232 kB / 327.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.564e-05/0.01225, allocations: 75.33 kB / 327.6 MB, free: 13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.887e-05/0.01233, allocations: 69.66 kB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.01244, allocations: 342.8 kB / 328 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.01261, allocations: 95.92 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.01282, allocations: 199.7 kB / 328.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/0.01318, allocations: 305.2 kB / 328.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.01319, allocations: 0 / 328.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004964/0.01368, allocations: 401.2 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.0137, allocations: 4 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.01371, allocations: 7.938 kB / 328.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000231/0.01394, allocations: 69.7 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.01413, allocations: 71.89 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.01561, allocations: 2.626 MB / 331.7 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.01575, allocations: 24.11 kB / 331.7 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.01577, allocations: 16 kB / 331.7 MB, free: 8.449 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.0001248/0.01589, allocations: 153.7 kB / 331.9 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.01592, allocations: 23.86 kB / 331.9 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.401e-05/0.01598, allocations: 26.28 kB / 331.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.01598, allocations: 7.984 kB / 332 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.01599, allocations: 0 / 332 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01599, allocations: 4 kB / 332 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002454/0.01624, allocations: 276.6 kB / 332.2 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.01624, allocations: 0 / 332.2 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.01635, allocations: 43.91 kB / 332.3 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.01646, allocations: 57.67 kB / 332.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.01647, allocations: 0 / 332.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002031/0.0185, allocations: 2.622 MB / 335 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.0185, allocations: 3.938 kB / 335 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005672/0.01907, allocations: 384.1 kB / 335.3 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.404e-05/0.0191, allocations: 23.81 kB / 335.4 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.01912, allocations: 7.938 kB / 335.4 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.01924, allocations: 19.97 kB / 335.4 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.454e-05/0.01929, allocations: 15.97 kB / 335.4 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.0193, allocations: 4 kB / 335.4 MB, free: 4.492 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001425/0.01944, allocations: 201.2 kB / 335.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01944, allocations: 0 / 335.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000254/0.0197, allocations: 76 kB / 335.7 MB, free: 4.219 MB / 298.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.0006753/0.02037, allocations: 0.9051 MB / 336.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.02093, allocations: 476.6 kB / 337 MB, free: 2.793 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.02094, allocations: 192 / 337 MB, free: 2.793 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.02118, allocations: 341.2 kB / 337.4 MB, free: 2.434 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.02142, allocations: 28.48 kB / 337.4 MB, free: 2.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.02406, allocations: 3.007 MB / 340.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.02417, allocations: 168.8 kB / 340.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.978e-05/0.02425, allocations: 30.41 kB / 340.6 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.02435, allocations: 100.4 kB / 340.7 MB, free: 14.89 MB / 314.7 MB Notification: Performance of SimCode: time 6.72e-07/0.02435, allocations: 0 / 340.7 MB, free: 14.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.04766, allocations: 6.531 MB / 347.2 MB, free: 8.578 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.455/7.503, allocations: 8.047 kB / 347.2 MB, free: 8.57 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.182536451146007]