Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001454/0.001454, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001558/0.001558, allocations: 208.2 kB / 20.75 MB, free: 2.336 MB / 14.72 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 1.628/1.628, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1252, allocations: 53.32 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005454/0.1306, allocations: 2.848 MB / 429.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.1325, allocations: 0.7866 MB / 429.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.1328, allocations: 8 kB / 429.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004255/0.1333, allocations: 67.38 kB / 430 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004886/0.1337, allocations: 95.25 kB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003793/0.1341, allocations: 115.7 kB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005819/0.1347, allocations: 390.5 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/0.1349, allocations: 98.86 kB / 430.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004095/0.1354, allocations: 163.4 kB / 430.9 MB, free: 240 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003776/0.1357, allocations: 171.2 kB / 431 MB, free: 68 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.513e-05/0.1358, allocations: 36 kB / 431.1 MB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2346/0.3704, allocations: 32.05 kB / 431.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.3706, allocations: 70.61 kB / 431.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.3708, allocations: 172.8 kB / 431.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007285/0.3716, allocations: 403.3 kB / 431.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3716, allocations: 0 / 431.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3716, allocations: 0.75 kB / 431.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3716, allocations: 0 / 431.7 MB, free: 7.957 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.001167/0.3728, allocations: 0.6439 MB / 432.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3728, allocations: 9.844 kB / 432.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.275e-05/0.3729, allocations: 72.14 kB / 432.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.016e-05/0.373, allocations: 39.02 kB / 432.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.3734, allocations: 280 kB / 432.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.3734, allocations: 24.22 kB / 432.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.756e-05/0.3735, allocations: 33.75 kB / 432.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007324/0.3742, allocations: 292.9 kB / 433.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3742, allocations: 0.5625 kB / 433.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.3742, allocations: 12.75 kB / 433.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.3742, allocations: 8.938 kB / 433.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006063/0.3748, allocations: 250.2 kB / 433.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.3765, allocations: 1.107 MB / 434.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/0.377, allocations: 154.1 kB / 434.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.3772, allocations: 61.64 kB / 434.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.3773, allocations: 6.844 kB / 434.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.3773, allocations: 35.69 kB / 434.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 2.114e-06/0.3773, allocations: 3.312 kB / 434.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002273/0.3796, allocations: 0.5886 MB / 435.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.118e-05/0.3797, allocations: 61.86 kB / 435.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003698/0.38, allocations: 272.1 kB / 435.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.38, allocations: 29.52 kB / 435.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.3802, allocations: 234.6 kB / 435.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.834e-05/0.3802, allocations: 76.69 kB / 436 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3803, allocations: 69.27 kB / 436 MB, free: 5.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.429e-05/0.3804, allocations: 334.7 kB / 436.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.3807, allocations: 97.64 kB / 436.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003698/0.3811, allocations: 193.8 kB / 436.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000612/0.3817, allocations: 297.5 kB / 436.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3817, allocations: 2.375 kB / 436.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000997/0.3827, allocations: 392.2 kB / 437.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3827, allocations: 5.469 kB / 437.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.3827, allocations: 3.844 kB / 437.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.383, allocations: 62.38 kB / 437.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.3834, allocations: 73.8 kB / 437.5 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.3849, allocations: 2.834 MB / 440.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.3853, allocations: 26.84 kB / 440.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.3853, allocations: 18.03 kB / 440.3 MB, free: 2.59 MB / 350.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.0001567/0.3855, allocations: 157.7 kB / 440.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.3855, allocations: 24.8 kB / 440.5 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.562e-05/0.3856, allocations: 32.06 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.3856, allocations: 2.594 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3856, allocations: 1.375 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3856, allocations: 1.406 kB / 440.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003874/0.386, allocations: 341.8 kB / 440.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.386, allocations: 1.188 kB / 440.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002141/0.3862, allocations: 39.16 kB / 440.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001605/0.3864, allocations: 56.95 kB / 441 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.3864, allocations: 5.531 kB / 441 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.3881, allocations: 2.827 MB / 443.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3881, allocations: 0 / 443.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008805/0.389, allocations: 380.2 kB / 444.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3891, allocations: 104 kB / 444.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.3891, allocations: 2.859 kB / 444.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.3893, allocations: 18.77 kB / 444.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/0.3894, allocations: 19.38 kB / 444.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.3894, allocations: 8.812 kB / 444.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002484/0.3897, allocations: 188.6 kB / 444.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3897, allocations: 0 / 444.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000562/0.3903, allocations: 75.12 kB / 444.6 MB, free: 14.9 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.001201/0.3915, allocations: 0.9106 MB / 445.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3926, allocations: 473.2 kB / 446 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3926, allocations: 0 / 446 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006576/0.3933, allocations: 348.5 kB / 446.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.3937, allocations: 28.95 kB / 446.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005527/0.3992, allocations: 2.956 MB / 449.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.3997, allocations: 0.7721 MB / 450.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001765/0.3999, allocations: 28.81 kB / 450.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.4001, allocations: 101.3 kB / 450.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4001, allocations: 0 / 450.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04886/0.4489, allocations: 5.66 MB / 455.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.12, allocations: 7.609 kB / 455.9 MB, free: 10.09 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.833910333007225]