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.0008621/0.0008621, allocations: 83.69 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.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.001052/0.001052, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8989/0.8989, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.342e-06/1.342e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.311e-05/1.445e-05, allocations: 5.094 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.002609/0.002623, allocations: 2.661 MB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.004054, allocations: 0.7515 MB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.004187, allocations: 7.938 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.004366, allocations: 63.44 kB / 328.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.0046, allocations: 107.1 kB / 328.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.004824, allocations: 111.8 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.005114, allocations: 398.9 kB / 328.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.005296, allocations: 99.05 kB / 328.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003162/0.005612, allocations: 231.4 kB / 329 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.005738, allocations: 135.6 kB / 329.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.005773, allocations: 32 kB / 329.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.911e-05/0.005802, allocations: 32 kB / 329.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.037e-05/0.005842, allocations: 71.73 kB / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.777e-05/0.00592, allocations: 119.7 kB / 329.4 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.0062, allocations: 402.7 kB / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.006203, allocations: 7.938 kB / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006204, allocations: 0 / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.006209, allocations: 0 / 329.8 MB, free: 10.73 MB / 298.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.0007382/0.006947, allocations: 0.5675 MB / 330.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.006985, allocations: 12.03 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.557e-05/0.007041, allocations: 66.72 kB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.034e-05/0.007091, allocations: 40.7 kB / 330.4 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.007343, allocations: 222.1 kB / 330.7 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.007368, allocations: 29.03 kB / 330.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.57e-05/0.007404, allocations: 28.38 kB / 330.7 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003715/0.007775, allocations: 286.6 kB / 331 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.007784, allocations: 192 / 331 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.007804, allocations: 12.12 kB / 331 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.007813, allocations: 8 kB / 331 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003491/0.008162, allocations: 258.4 kB / 331.3 MB, free: 9.145 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.00919, allocations: 0.9215 MB / 332.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002375/0.009427, allocations: 142.6 kB / 332.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.889e-05/0.009526, allocations: 60.83 kB / 332.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.009546, allocations: 4 kB / 332.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.009567, allocations: 42.42 kB / 332.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.009568, allocations: 0 / 332.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001149/0.01072, allocations: 0.6024 MB / 333 MB, free: 7.266 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.01076, allocations: 55.41 kB / 333.1 MB, free: 7.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.01094, allocations: 273.8 kB / 333.4 MB, free: 6.926 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.01096, allocations: 25.7 kB / 333.4 MB, free: 6.895 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.01106, allocations: 232 kB / 333.6 MB, free: 6.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.349e-05/0.0111, allocations: 87.25 kB / 333.7 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.72e-05/0.01117, allocations: 61.66 kB / 333.8 MB, free: 6.508 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.329e-05/0.01127, allocations: 342.8 kB / 334.1 MB, free: 6.164 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.01143, allocations: 95.88 kB / 334.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.01163, allocations: 192.2 kB / 334.4 MB, free: 5.836 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000388/0.01202, allocations: 302.1 kB / 334.7 MB, free: 5.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.01202, allocations: 0 / 334.7 MB, free: 5.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008165/0.01284, allocations: 397.5 kB / 335.1 MB, free: 5.102 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.01286, allocations: 7.984 kB / 335.1 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.01287, allocations: 4 kB / 335.1 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002026/0.01307, allocations: 57.62 kB / 335.1 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.01325, allocations: 79.89 kB / 335.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.01455, allocations: 2.618 MB / 337.8 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.01468, allocations: 27.97 kB / 337.8 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.0147, allocations: 12 kB / 337.9 MB, free: 2.062 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.0001147/0.01481, allocations: 153.8 kB / 338 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.01484, allocations: 27.81 kB / 338 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.272e-05/0.01488, allocations: 30.27 kB / 338.1 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.01489, allocations: 4 kB / 338.1 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.01489, allocations: 0 / 338.1 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.01489, allocations: 144 / 338.1 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.01512, allocations: 276.6 kB / 338.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.01512, allocations: 0 / 338.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.619e-05/0.01522, allocations: 51.88 kB / 338.4 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001003/0.01532, allocations: 49.69 kB / 338.4 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.01533, allocations: 8 kB / 338.4 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.01656, allocations: 2.618 MB / 341.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01656, allocations: 0 / 341.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004198/0.01698, allocations: 375.8 kB / 341.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.585e-05/0.017, allocations: 23.94 kB / 341.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.01702, allocations: 11.94 kB / 341.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.01711, allocations: 15.97 kB / 341.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.739e-05/0.01718, allocations: 19.97 kB / 341.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.01719, allocations: 8 kB / 341.5 MB, free: 14.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001326/0.01732, allocations: 189.2 kB / 341.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01732, allocations: 0 / 341.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005661/0.01789, allocations: 68 kB / 341.8 MB, free: 13.85 MB / 314.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.00061/0.0185, allocations: 0.9167 MB / 342.7 MB, free: 12.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005797/0.01908, allocations: 469 kB / 343.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01908, allocations: 0 / 343.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.01934, allocations: 345.2 kB / 343.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.0196, allocations: 28.48 kB / 343.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.0223, allocations: 2.948 MB / 346.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.02242, allocations: 164.8 kB / 346.6 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.465e-05/0.0225, allocations: 34.31 kB / 346.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.0226, allocations: 100.5 kB / 346.7 MB, free: 8.594 MB / 314.7 MB Notification: Performance of SimCode: time 7.21e-07/0.0226, allocations: 0 / 346.7 MB, free: 8.594 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.04576, allocations: 6.42 MB / 353.2 MB, free: 2.324 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.247/7.293, allocations: 5.125 kB / 353.2 MB, free: 2.324 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/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: 9.009918140247464]