Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008996/0.0008996, allocations: 183.5 kB / 8.134 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 221.4 MB / 229.9 MB, free: 3.09 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009034/0.0009036, allocations: 96.92 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.302e-06/6.352e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2313, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1031/0.3345, allocations: 86.73 MB / 473.6 MB, free: 60 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/0.3348, allocations: 91.88 kB / 473.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.05873/0.3936, allocations: 24.92 MB / 498.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.3936, allocations: 12 kB / 498.7 MB, free: 6.773 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003186/0.3968, allocations: 1.111 MB / 499.8 MB, free: 5.617 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.3969, allocations: 8.031 kB / 499.8 MB, free: 5.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002233/0.3991, allocations: 338.8 kB / 0.4884 GB, free: 5.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.3994, allocations: 258.7 kB / 0.4886 GB, free: 4.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.729e-05/0.3995, allocations: 24 kB / 0.4887 GB, free: 4.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3996, allocations: 51.98 kB / 0.4887 GB, free: 4.906 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00126/0.4009, allocations: 0.6561 MB / 0.4894 GB, free: 4.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.4021, allocations: 0.6884 MB / 0.49 GB, free: 3.551 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.4021, allocations: 3.906 kB / 0.49 GB, free: 3.547 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.4022, allocations: 7.938 kB / 0.49 GB, free: 3.539 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.4022, allocations: 20 kB / 0.4901 GB, free: 3.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004538/0.4068, allocations: 2.849 MB / 0.4928 GB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.4072, allocations: 265.3 kB / 0.4931 GB, free: 240 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.4075, allocations: 178.4 kB / 0.4933 GB, free: 56 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1476/0.5551, allocations: 106.8 kB / 0.4934 GB, free: 125.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.5551, allocations: 38.75 kB / 0.4934 GB, free: 125.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.765e-06/0.5551, allocations: 0 / 0.4934 GB, free: 125.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.003951/0.5591, allocations: 1.484 MB / 0.4949 GB, free: 125.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.5591, allocations: 82.89 kB / 0.4949 GB, free: 125.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.5594, allocations: 254.2 kB / 0.4952 GB, free: 125.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/0.5594, allocations: 25.7 kB / 0.4952 GB, free: 125 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.5595, allocations: 349.8 kB / 0.4955 GB, free: 124.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.5596, allocations: 201.7 kB / 0.4957 GB, free: 124.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.5597, allocations: 0 / 0.4957 GB, free: 124.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.452e-05/0.5598, allocations: 354.4 kB / 0.4961 GB, free: 124.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.56, allocations: 183.7 kB / 0.4962 GB, free: 124.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/0.5604, allocations: 426.3 kB / 0.4966 GB, free: 124.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005227/0.5609, allocations: 269 kB / 0.4969 GB, free: 124.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.5609, allocations: 0 / 0.4969 GB, free: 124.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001171/0.5621, allocations: 0.6991 MB / 0.4976 GB, free: 124.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.5621, allocations: 11.19 kB / 0.4976 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.5622, allocations: 7.594 kB / 0.4976 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/0.5624, allocations: 64.94 kB / 0.4977 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009494/0.5633, allocations: 222.5 kB / 0.4979 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.5647, allocations: 2.538 MB / 0.5004 GB, free: 121.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007243/0.5655, allocations: 69.56 kB / 0.5004 GB, free: 121.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.818e-05/0.5655, allocations: 37.81 kB / 0.5005 GB, free: 121.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.5657, allocations: 126.5 kB / 0.5006 GB, free: 121.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.595e-05/0.5658, allocations: 44 kB / 0.5006 GB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.5669, allocations: 0.5883 MB / 0.5012 GB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5669, allocations: 3.875 kB / 0.5012 GB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.567, allocations: 7.281 kB / 0.5012 GB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.567, allocations: 3.844 kB / 0.5012 GB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.5687, allocations: 1.182 MB / 0.5024 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5687, allocations: 0 / 0.5024 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007612/0.5695, allocations: 157.9 kB / 0.5025 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001608/0.5697, allocations: 52.44 kB / 0.5026 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.972e-05/0.5697, allocations: 13.22 kB / 0.5026 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.571, allocations: 2.527 MB / 0.505 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.571, allocations: 3.562 kB / 0.505 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001269/0.5722, allocations: 0.8607 MB / 0.5059 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.5724, allocations: 164.2 kB / 0.506 GB, free: 118.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.679e-05/0.5725, allocations: 1.125 kB / 0.506 GB, free: 118.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005909/0.5731, allocations: 59.23 kB / 0.5061 GB, free: 118.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.5732, allocations: 34.36 kB / 0.5061 GB, free: 118.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.5733, allocations: 25.73 kB / 0.5062 GB, free: 118.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001417/0.5734, allocations: 181.6 kB / 0.5063 GB, free: 118.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006787/0.5741, allocations: 166.3 kB / 0.5065 GB, free: 118.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002425/0.5744, allocations: 157.7 kB / 0.5066 GB, free: 118.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009579/0.5753, allocations: 0.7282 MB / 0.5074 GB, free: 118.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.5754, allocations: 3.812 kB / 0.5074 GB, free: 118.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004638/0.5758, allocations: 457.7 kB / 0.5078 GB, free: 117.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.5761, allocations: 24.48 kB / 0.5078 GB, free: 117.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.5782, allocations: 0.8589 MB / 0.5087 GB, free: 117.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004713/0.5787, allocations: 0.9626 MB / 0.5096 GB, free: 116.9 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5787, allocations: 4 kB / 0.5096 GB, free: 116.9 MB / 378.7 MB Notification: Performance of Templates: time 0.01243/0.5912, allocations: 7.736 MB / 0.5172 GB, free: 116.5 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches