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.00132/0.00132, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001448/0.001448, allocations: 218.2 kB / 23.73 MB, free: 4.164 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001606/0.001606, allocations: 63.89 kB / 377.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2915, allocations: 53.36 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004493/0.296, allocations: 2.644 MB / 433.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2977, allocations: 0.7477 MB / 434.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.2978, allocations: 4 kB / 434.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.298, allocations: 63.42 kB / 434.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.2983, allocations: 103.2 kB / 434.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.2986, allocations: 107.9 kB / 434.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004169/0.299, allocations: 390.5 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.2992, allocations: 91.34 kB / 435.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.2995, allocations: 159.4 kB / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.2998, allocations: 151.2 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.589e-05/0.2998, allocations: 32 kB / 435.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.016e-05/0.2999, allocations: 32 kB / 435.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.51e-05/0.3, allocations: 83.62 kB / 435.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.3001, allocations: 139.4 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004582/0.3006, allocations: 398.7 kB / 436.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3006, allocations: 4 kB / 436.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3006, allocations: 0 / 436.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3006, allocations: 3.938 kB / 436.2 MB, free: 1.539 MB / 334.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.001182/0.3018, allocations: 0.5792 MB / 436.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.3018, allocations: 12.03 kB / 436.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.908e-05/0.3019, allocations: 70.72 kB / 436.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.004e-05/0.302, allocations: 40.7 kB / 436.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/0.3024, allocations: 218.8 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.3024, allocations: 21.03 kB / 437.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.834e-05/0.3025, allocations: 36.38 kB / 437.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006104/0.3031, allocations: 290.1 kB / 437.5 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3031, allocations: 4 kB / 437.5 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.3031, allocations: 16 kB / 437.5 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.3031, allocations: 8 kB / 437.5 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006898/0.3038, allocations: 246.5 kB / 437.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.3056, allocations: 0.9205 MB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000408/0.3061, allocations: 149.6 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.3062, allocations: 64.81 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.3063, allocations: 4 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.3063, allocations: 34.56 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 3.817e-06/0.3063, allocations: 7.984 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002119/0.3084, allocations: 0.5963 MB / 439.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.3085, allocations: 55.41 kB / 439.6 MB, free: 14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003266/0.3088, allocations: 277.6 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.3088, allocations: 37.7 kB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.309, allocations: 232.1 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.3091, allocations: 71.34 kB / 440.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.3092, allocations: 73.42 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3093, allocations: 338.8 kB / 440.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.3096, allocations: 87.94 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003715/0.31, allocations: 192.2 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/0.3107, allocations: 305.1 kB / 441.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3107, allocations: 0 / 441.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009087/0.3116, allocations: 397 kB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.3116, allocations: 4 kB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3116, allocations: 4 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002522/0.3118, allocations: 62.08 kB / 441.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003305/0.3122, allocations: 75.89 kB / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.3145, allocations: 2.63 MB / 444.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.3148, allocations: 19.98 kB / 444.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.3148, allocations: 16 kB / 444.3 MB, free: 8.859 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.0001767/0.315, allocations: 153.6 kB / 444.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.377e-05/0.315, allocations: 31.75 kB / 444.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.969e-05/0.3151, allocations: 34.27 kB / 444.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3151, allocations: 4 kB / 444.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3151, allocations: 4.062 kB / 444.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3151, allocations: 0 / 444.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004018/0.3155, allocations: 276.6 kB / 444.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3155, allocations: 0 / 444.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002135/0.3157, allocations: 39.97 kB / 444.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001584/0.3159, allocations: 57.67 kB / 444.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.3159, allocations: 4 kB / 444.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.3182, allocations: 2.622 MB / 447.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3182, allocations: 0 / 447.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007996/0.319, allocations: 383.7 kB / 447.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.419e-05/0.319, allocations: 31.8 kB / 447.9 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.219e-05/0.3191, allocations: 0 / 447.9 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.3193, allocations: 15.98 kB / 448 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.3193, allocations: 23.95 kB / 448 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3194, allocations: 4 kB / 448 MB, free: 4.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.3196, allocations: 189.2 kB / 448.2 MB, free: 4.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3196, allocations: 4 kB / 448.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.32, allocations: 72 kB / 448.3 MB, free: 4.625 MB / 350.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.001105/0.3211, allocations: 0.9089 MB / 449.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009739/0.3221, allocations: 469.7 kB / 449.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3221, allocations: 0 / 449.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005618/0.3226, allocations: 354.7 kB / 450 MB, free: 2.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.323, allocations: 20.5 kB / 450 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00465/0.3276, allocations: 2.943 MB / 452.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.3278, allocations: 168.8 kB / 453.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.3279, allocations: 26.28 kB / 453.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.3281, allocations: 103.4 kB / 453.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3281, allocations: 4 kB / 453.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04033/0.3684, allocations: 6.25 MB / 459.5 MB, free: 9.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.99, allocations: 9.953 kB / 459.5 MB, free: 9.289 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.509065691847354]