Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001089/0.001089, 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.001161/0.001161, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.897/0.897, allocations: 173.4 MB / 200.4 MB, free: 9.426 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.425e-05/1.594e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00254/0.002556, allocations: 2.61 MB / 321 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000827/0.003383, allocations: 0.7242 MB / 321.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.003496, allocations: 4 kB / 321.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.003674, allocations: 63.44 kB / 321.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.003881, allocations: 111 kB / 321.9 MB, free: 2.812 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.004073, allocations: 115.7 kB / 322.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.004339, allocations: 398.4 kB / 322.4 MB, free: 2.309 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.004506, allocations: 87.33 kB / 322.5 MB, free: 2.223 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.004739, allocations: 239.4 kB / 322.8 MB, free: 1.988 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.004874, allocations: 119.6 kB / 322.9 MB, free: 1.871 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.425e-05/0.004918, allocations: 36 kB / 322.9 MB, free: 1.836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.915e-05/0.004947, allocations: 36 kB / 323 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.43e-05/0.004992, allocations: 67.75 kB / 323 MB, free: 1.734 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.019e-05/0.005072, allocations: 127.7 kB / 323.1 MB, free: 1.609 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.005344, allocations: 394.7 kB / 323.5 MB, free: 1.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.005348, allocations: 4 kB / 323.5 MB, free: 1.219 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.005349, allocations: 0 / 323.5 MB, free: 1.219 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.005354, allocations: 0 / 323.5 MB, free: 1.219 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.0007147/0.006068, allocations: 0.5676 MB / 324.1 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.006108, allocations: 12.92 kB / 324.1 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.187e-05/0.00616, allocations: 70.66 kB / 324.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.416e-05/0.006204, allocations: 40.7 kB / 324.2 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002328/0.006437, allocations: 205.8 kB / 324.4 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.006459, allocations: 29.03 kB / 324.5 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.636e-05/0.006495, allocations: 32.38 kB / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.006875, allocations: 282.7 kB / 324.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.006885, allocations: 192 / 324.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.306e-05/0.006908, allocations: 20.12 kB / 324.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.006916, allocations: 8 kB / 324.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.007272, allocations: 250.4 kB / 325 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.008308, allocations: 0.9214 MB / 326 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.008543, allocations: 142.5 kB / 326.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.008645, allocations: 72.81 kB / 326.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.008665, allocations: 4 kB / 326.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.008683, allocations: 34.5 kB / 326.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.008684, allocations: 0 / 326.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001127/0.009811, allocations: 0.5937 MB / 326.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.009839, allocations: 55.41 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.01002, allocations: 273.8 kB / 327.1 MB, free: 13.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.01003, allocations: 25.7 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.39e-05/0.01013, allocations: 228.1 kB / 327.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.998e-05/0.01017, allocations: 83.27 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.41e-05/0.01023, allocations: 65.66 kB / 327.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.213e-05/0.01031, allocations: 338.7 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.01048, allocations: 103.9 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.01067, allocations: 199.7 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.01102, allocations: 297.1 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01102, allocations: 0 / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004639/0.01148, allocations: 401.5 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.0115, allocations: 7.938 kB / 328.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.0115, allocations: 4 kB / 328.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001662/0.01167, allocations: 61.61 kB / 328.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.01184, allocations: 67.89 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.01307, allocations: 2.626 MB / 331.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.01319, allocations: 23.97 kB / 331.6 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.0132, allocations: 12 kB / 331.6 MB, free: 8.574 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.0001012/0.0133, allocations: 153.8 kB / 331.8 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.01333, allocations: 27.81 kB / 331.8 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.283e-05/0.01337, allocations: 34.27 kB / 331.8 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.01338, allocations: 144 / 331.8 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.01338, allocations: 3.984 kB / 331.8 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01338, allocations: 7.984 kB / 331.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.0136, allocations: 276.5 kB / 332.1 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.0136, allocations: 0 / 332.1 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.859e-05/0.0137, allocations: 39.91 kB / 332.2 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.148e-05/0.01379, allocations: 53.69 kB / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.0138, allocations: 7.984 kB / 332.2 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.01489, allocations: 2.622 MB / 334.8 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.01489, allocations: 3.984 kB / 334.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.01528, allocations: 364.8 kB / 335.2 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.309e-05/0.0153, allocations: 23.81 kB / 335.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.01532, allocations: 7.938 kB / 335.2 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.567e-05/0.01541, allocations: 24.03 kB / 335.2 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.01546, allocations: 19.97 kB / 335.3 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.01547, allocations: 4 kB / 335.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001162/0.01558, allocations: 189.2 kB / 335.5 MB, free: 4.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01558, allocations: 0 / 335.5 MB, free: 4.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000239/0.01582, allocations: 68 kB / 335.5 MB, free: 4.359 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.0005836/0.0164, allocations: 0.9119 MB / 336.4 MB, free: 3.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005894/0.01699, allocations: 465 kB / 336.9 MB, free: 2.934 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.017, allocations: 0 / 336.9 MB, free: 2.934 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.01725, allocations: 342 kB / 337.2 MB, free: 2.574 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.01749, allocations: 28.48 kB / 337.3 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.02006, allocations: 2.932 MB / 340.2 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001026/0.02016, allocations: 168.8 kB / 340.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.247e-05/0.02024, allocations: 26.33 kB / 340.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.02034, allocations: 100.5 kB / 340.5 MB, free: 15.12 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.02034, allocations: 0 / 340.5 MB, free: 15.12 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.04515, allocations: 6.363 MB / 346.8 MB, free: 8.922 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.41/7.456, allocations: 10.81 kB / 346.8 MB, free: 8.914 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.175377929583192]