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.001816/0.001816, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 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.001618/0.001618, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 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 1.512/1.512, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001542/0.001542, allocations: 47.92 kB / 365.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1162, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004848/0.121, allocations: 2.842 MB / 420.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1227, allocations: 0.7593 MB / 421.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.1228, allocations: 4 kB / 421.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002411/0.1231, allocations: 67.42 kB / 421.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.1233, allocations: 99.17 kB / 421.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.1236, allocations: 99.81 kB / 421.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004689/0.1241, allocations: 398.5 kB / 422 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.1243, allocations: 98.94 kB / 422.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000256/0.1246, allocations: 163.4 kB / 422.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.1248, allocations: 175.2 kB / 422.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.683e-05/0.1249, allocations: 32 kB / 422.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.213e-05/0.1249, allocations: 32 kB / 422.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.125, allocations: 91.56 kB / 422.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.1252, allocations: 175.1 kB / 422.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005058/0.1257, allocations: 402.3 kB / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1257, allocations: 0 / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1257, allocations: 0 / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.1257, allocations: 4 kB / 423.2 MB, free: 7.145 MB / 350.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.001304/0.127, allocations: 0.6544 MB / 423.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.1271, allocations: 12.02 kB / 423.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.302e-05/0.1272, allocations: 66.73 kB / 423.9 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.603e-05/0.1272, allocations: 48.64 kB / 424 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.1277, allocations: 272.7 kB / 424.2 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.1277, allocations: 32.97 kB / 424.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.279e-05/0.1278, allocations: 28.38 kB / 424.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006231/0.1284, allocations: 294.2 kB / 424.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1284, allocations: 0 / 424.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.1284, allocations: 16 kB / 424.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.1284, allocations: 8 kB / 424.6 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006474/0.1291, allocations: 250.5 kB / 424.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.1309, allocations: 1.12 MB / 426 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004012/0.1313, allocations: 150.4 kB / 426.1 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.1315, allocations: 60.83 kB / 426.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.1315, allocations: 8 kB / 426.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.1316, allocations: 34.55 kB / 426.2 MB, free: 3.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.153e-06/0.1316, allocations: 0 / 426.2 MB, free: 3.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002226/0.1338, allocations: 0.6055 MB / 426.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.1338, allocations: 51.41 kB / 426.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.1341, allocations: 278.6 kB / 427.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.225e-05/0.1342, allocations: 25.7 kB / 427.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.1343, allocations: 236 kB / 427.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.812e-05/0.1344, allocations: 83.31 kB / 427.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.1345, allocations: 69.64 kB / 427.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1347, allocations: 334.8 kB / 427.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003001/0.135, allocations: 95.94 kB / 428 MB, free: 2.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003793/0.1354, allocations: 199.9 kB / 428.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006666/0.136, allocations: 301.8 kB / 428.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.136, allocations: 4 kB / 428.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009091/0.1369, allocations: 397 kB / 428.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.137, allocations: 8 kB / 428.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.137, allocations: 416 / 428.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.1372, allocations: 61.67 kB / 428.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.1376, allocations: 75.89 kB / 429 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.14, allocations: 2.837 MB / 431.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.1403, allocations: 23.92 kB / 431.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.1403, allocations: 24 kB / 431.9 MB, free: 13.79 MB / 366.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.0001784/0.1405, allocations: 149.7 kB / 432 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.494e-05/0.1405, allocations: 23.86 kB / 432 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.529e-05/0.1406, allocations: 30.17 kB / 432.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1406, allocations: 7.938 kB / 432.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1406, allocations: 0 / 432.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1406, allocations: 3.984 kB / 432.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004351/0.1411, allocations: 333.4 kB / 432.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1411, allocations: 4 kB / 432.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000218/0.1413, allocations: 43.95 kB / 432.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.1415, allocations: 65.73 kB / 432.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.1415, allocations: 4 kB / 432.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.1438, allocations: 2.821 MB / 435.4 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.1438, allocations: 8.156 kB / 435.4 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007967/0.1446, allocations: 376.7 kB / 435.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.932e-05/0.1447, allocations: 100.9 kB / 435.8 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.1447, allocations: 8 kB / 435.8 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.1449, allocations: 19.97 kB / 435.9 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.875e-05/0.145, allocations: 19.92 kB / 435.9 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.145, allocations: 4 kB / 435.9 MB, free: 9.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.1453, allocations: 198 kB / 436.1 MB, free: 9.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1453, allocations: 0 / 436.1 MB, free: 9.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004094/0.1457, allocations: 72 kB / 436.1 MB, free: 9.137 MB / 366.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.001196/0.1469, allocations: 0.9075 MB / 437 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.148, allocations: 482.9 kB / 437.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.148, allocations: 0 / 437.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005462/0.1485, allocations: 337.2 kB / 437.8 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.1489, allocations: 28.92 kB / 437.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/0.1536, allocations: 3.024 MB / 440.9 MB, free: 4.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.154, allocations: 0.7753 MB / 441.7 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.1541, allocations: 26.3 kB / 441.7 MB, free: 3.293 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1543, allocations: 107.3 kB / 441.8 MB, free: 3.188 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1543, allocations: 0 / 441.8 MB, free: 3.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2522/0.4065, allocations: 5.767 MB / 447.6 MB, free: 30.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.76, allocations: 7.5 kB / 447.6 MB, free: 30.6 MB / 366.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/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: 13.342599986121058]