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.002157/0.002157, allocations: 124 kB / 17.79 MB, free: 5.266 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.002622/0.002622, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.62/1.62, 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.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 0.001468/0.001468, allocations: 55.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1121, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004655/0.1168, allocations: 2.812 MB / 420.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1181, allocations: 0.7515 MB / 421.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.1182, allocations: 4 kB / 421.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.1184, allocations: 67.42 kB / 421.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002733/0.1187, allocations: 99.23 kB / 421.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.119, allocations: 103.8 kB / 421.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005998/0.1196, allocations: 390.5 kB / 422 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.1198, allocations: 90.95 kB / 422.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.12, allocations: 163.4 kB / 422.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.1202, allocations: 175.2 kB / 422.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.857e-05/0.1203, allocations: 32 kB / 422.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.394e-05/0.1203, allocations: 32 kB / 422.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.1204, allocations: 71.75 kB / 422.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1206, allocations: 175.1 kB / 422.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004971/0.1211, allocations: 398.2 kB / 423.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1211, allocations: 0 / 423.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1211, allocations: 0 / 423.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1211, allocations: 4 kB / 423.1 MB, free: 7.262 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.00129/0.1224, allocations: 0.6428 MB / 423.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1224, allocations: 16.03 kB / 423.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.98e-05/0.1225, allocations: 66.72 kB / 423.8 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.204e-05/0.1226, allocations: 40.7 kB / 423.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.123, allocations: 276.1 kB / 424.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.123, allocations: 21.03 kB / 424.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.49e-05/0.1231, allocations: 36.36 kB / 424.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006274/0.1237, allocations: 286.2 kB / 424.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1237, allocations: 0 / 424.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.865e-05/0.1238, allocations: 20 kB / 424.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.1238, allocations: 8 kB / 424.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006405/0.1245, allocations: 246.5 kB / 424.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.1263, allocations: 1.116 MB / 425.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004141/0.1267, allocations: 146.5 kB / 426 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.1269, allocations: 64.83 kB / 426.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.1269, allocations: 7.984 kB / 426.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.127, allocations: 30.56 kB / 426.1 MB, free: 4.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.127, allocations: 0 / 426.1 MB, free: 4.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002119/0.1291, allocations: 0.6018 MB / 426.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.1291, allocations: 51.41 kB / 426.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.1294, allocations: 266.5 kB / 427 MB, free: 3.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.1295, allocations: 33.7 kB / 427.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1296, allocations: 224.1 kB / 427.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.95e-05/0.1297, allocations: 91.2 kB / 427.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.1298, allocations: 69.66 kB / 427.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1299, allocations: 330.8 kB / 427.8 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.1302, allocations: 95.92 kB / 427.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000379/0.1306, allocations: 202.5 kB / 428 MB, free: 2.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/0.1313, allocations: 301.8 kB / 428.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1313, allocations: 4 kB / 428.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008821/0.1322, allocations: 385.1 kB / 428.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.1322, allocations: 4.406 kB / 428.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1322, allocations: 8 kB / 428.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002517/0.1324, allocations: 61.61 kB / 428.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/0.1328, allocations: 75.89 kB / 428.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.1353, allocations: 2.841 MB / 431.7 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.1355, allocations: 19.98 kB / 431.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.1356, allocations: 20.05 kB / 431.7 MB, free: 13.96 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.0001843/0.1358, allocations: 153.7 kB / 431.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.367e-05/0.1358, allocations: 23.81 kB / 431.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.982e-05/0.1359, allocations: 34.17 kB / 432 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1359, allocations: 4 kB / 432 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1359, allocations: 0 / 432 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1359, allocations: 0 / 432 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004059/0.1363, allocations: 329.4 kB / 432.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1363, allocations: 4 kB / 432.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.1365, allocations: 39.91 kB / 432.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001553/0.1367, allocations: 57.8 kB / 432.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.1367, allocations: 4 kB / 432.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.139, allocations: 2.841 MB / 435.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.139, allocations: 0 / 435.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007513/0.1397, allocations: 374.7 kB / 435.6 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.836e-05/0.1398, allocations: 104.9 kB / 435.7 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.1398, allocations: 4 kB / 435.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.14, allocations: 15.98 kB / 435.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.554e-05/0.1401, allocations: 23.91 kB / 435.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.1401, allocations: 8 kB / 435.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001847/0.1403, allocations: 182 kB / 435.9 MB, free: 9.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1403, allocations: 0 / 435.9 MB, free: 9.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004254/0.1407, allocations: 76 kB / 436 MB, free: 9.336 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.001171/0.1419, allocations: 0.9134 MB / 436.9 MB, free: 8.391 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009877/0.1429, allocations: 467 kB / 437.4 MB, free: 7.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.1429, allocations: 4.25 kB / 437.4 MB, free: 7.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005284/0.1434, allocations: 345.2 kB / 437.7 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.1437, allocations: 20.56 kB / 437.7 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004594/0.1483, allocations: 2.963 MB / 440.7 MB, free: 4.375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.1488, allocations: 0.7675 MB / 441.5 MB, free: 3.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.1489, allocations: 30.28 kB / 441.5 MB, free: 3.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.149, allocations: 103.4 kB / 441.6 MB, free: 3.453 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.149, allocations: 4 kB / 441.6 MB, free: 3.449 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2602/0.4093, allocations: 5.589 MB / 447.2 MB, free: 30.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.8, allocations: 10.09 kB / 447.2 MB, free: 30.38 MB / 366.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/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: 13.420129220932722]