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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.00158, allocations: 175.3 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0009028/0.0009028, allocations: 79.75 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.721e-05, allocations: 0 / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08138/0.08141, allocations: 50.42 MB / 394.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.4871, allocations: 87.45 MB / 481.7 MB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.4875, allocations: 99.89 kB / 481.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07806/0.5656, allocations: 25.56 MB / 0.4955 GB, free: 6.098 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5656, allocations: 3.938 kB / 0.4955 GB, free: 6.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.258e-05/0.5656, allocations: 16 kB / 0.4955 GB, free: 6.078 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.004474/0.5701, allocations: 1.092 MB / 0.4966 GB, free: 4.934 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.5702, allocations: 15.97 kB / 0.4966 GB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003437/0.5736, allocations: 314.9 kB / 0.4969 GB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.5741, allocations: 254.8 kB / 0.4971 GB, free: 4.316 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.5742, allocations: 62 kB / 0.4972 GB, free: 4.258 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002263/0.5744, allocations: 87.91 kB / 0.4973 GB, free: 4.172 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/0.5766, allocations: 0.8057 MB / 0.4981 GB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.099e-05/0.5766, allocations: 4 kB / 0.4981 GB, free: 3.348 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.5768, allocations: 32.33 kB / 0.4981 GB, free: 3.316 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.982e-05/0.5768, allocations: 23.95 kB / 0.4981 GB, free: 3.293 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.5787, allocations: 0.703 MB / 0.4988 GB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006205/0.585, allocations: 2.981 MB / 0.5017 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.5864, allocations: 0.9615 MB / 0.5026 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004824/0.5869, allocations: 206.5 kB / 0.5028 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001558/0.5871, allocations: 97.64 kB / 0.5029 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.5871, allocations: 39.12 kB / 0.503 GB, free: 13.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 3.226e-06/0.5871, allocations: 0 / 0.503 GB, free: 13.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=61): time 0.007489/0.5946, allocations: 1.832 MB / 0.5048 GB, free: 12.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.5947, allocations: 81.67 kB / 0.5048 GB, free: 11.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004245/0.5952, allocations: 271.2 kB / 0.5051 GB, free: 11.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.5952, allocations: 33.7 kB / 0.5051 GB, free: 11.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.5955, allocations: 358.7 kB / 0.5055 GB, free: 11.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.5957, allocations: 208.9 kB / 0.5057 GB, free: 11.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.867e-05/0.5958, allocations: 20 kB / 0.5057 GB, free: 11.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.596, allocations: 350.8 kB / 0.506 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005593/0.5966, allocations: 198 kB / 0.5062 GB, free: 10.54 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007545/0.5973, allocations: 440.5 kB / 0.5066 GB, free: 10.01 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006739/0.598, allocations: 267.2 kB / 0.5069 GB, free: 9.746 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.598, allocations: 4 kB / 0.5069 GB, free: 9.742 MB / 394.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001956/0.6, allocations: 0.7501 MB / 0.5076 GB, free: 8.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.6, allocations: 11.95 kB / 0.5076 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.6001, allocations: 8 kB / 0.5076 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002883/0.6004, allocations: 77.92 kB / 0.5077 GB, free: 8.879 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.6017, allocations: 211.7 kB / 0.5079 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.6042, allocations: 2.652 MB / 0.5105 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.6053, allocations: 79.91 kB / 0.5106 GB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.694e-05/0.6054, allocations: 43.98 kB / 0.5106 GB, free: 5.625 MB / 394.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.000212/0.6056, allocations: 152.7 kB / 0.5108 GB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.6057, allocations: 43.48 kB / 0.5108 GB, free: 5.426 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.6075, allocations: 0.5947 MB / 0.5114 GB, free: 4.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.6075, allocations: 23.86 kB / 0.5114 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.6075, allocations: 0 / 0.5114 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.6076, allocations: 3.984 kB / 0.5114 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.6104, allocations: 1.286 MB / 0.5127 GB, free: 3.441 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.6104, allocations: 3.984 kB / 0.5127 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.6114, allocations: 143.8 kB / 0.5128 GB, free: 3.297 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000233/0.6117, allocations: 61.61 kB / 0.5129 GB, free: 3.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.227e-05/0.6118, allocations: 15.98 kB / 0.5129 GB, free: 3.215 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/0.6142, allocations: 2.636 MB / 0.5155 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6142, allocations: 0 / 0.5155 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.6163, allocations: 0.8792 MB / 0.5163 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000326/0.6167, allocations: 168.5 kB / 0.5165 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.717e-05/0.6168, allocations: 12 kB / 0.5165 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008107/0.6176, allocations: 60.02 kB / 0.5166 GB, free: 15.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.6178, allocations: 52.48 kB / 0.5166 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.209e-05/0.6178, allocations: 23.92 kB / 0.5166 GB, free: 15.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003121/0.6182, allocations: 198.2 kB / 0.5168 GB, free: 14.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6182, allocations: 4 kB / 0.5168 GB, free: 14.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001131/0.6193, allocations: 184 kB / 0.517 GB, free: 14.71 MB / 410.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.0003748/0.6197, allocations: 193.9 kB / 0.5172 GB, free: 14.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.6214, allocations: 0.768 MB / 0.5179 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6214, allocations: 3.938 kB / 0.5179 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008814/0.6223, allocations: 496.5 kB / 0.5184 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.6227, allocations: 32.78 kB / 0.5184 GB, free: 13.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.6257, allocations: 0.8653 MB / 0.5193 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005753/0.6263, allocations: 0.8925 MB / 0.5202 GB, free: 11.37 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008872/0.6272, allocations: 96.5 kB / 0.5203 GB, free: 11.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/0.6275, allocations: 51.41 kB / 0.5203 GB, free: 11.22 MB / 410.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6275, allocations: 0 / 0.5203 GB, free: 11.22 MB / 410.7 MB Notification: Performance of Templates: time 0.01733/0.6448, allocations: 6.06 MB / 0.5262 GB, free: 5.207 MB / 410.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