Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") [: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 3.2.3+maint.om/package.mo): time 0.001467/0.001467, allocations: 181.5 kB / 8.48 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.2 MB / 214.1 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000944/0.0009439, allocations: 84.7 kB / 262.1 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.991e-06/6.022e-06, allocations: 0 / 315 MB, free: 8.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2656, allocations: 47.56 MB / 362.5 MB, free: 45.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.3835, allocations: 89.99 MB / 452.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.3838, allocations: 83.84 kB / 452.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07145/0.4553, allocations: 29.9 MB / 482.5 MB, free: 13.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.135e-05/0.4553, allocations: 24 kB / 482.5 MB, free: 13.66 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.00345/0.4588, allocations: 1.253 MB / 483.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.4589, allocations: 9.062 kB / 483.8 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003067/0.4619, allocations: 0.4942 MB / 484.3 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000807/0.4628, allocations: 0.4953 MB / 484.8 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.39e-05/0.4628, allocations: 36 kB / 484.8 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.463, allocations: 68 kB / 484.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001727/0.4647, allocations: 0.9106 MB / 485.8 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.4661, allocations: 0.7798 MB / 486.6 MB, free: 9.508 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.4662, allocations: 3.906 kB / 486.6 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.588e-05/0.4663, allocations: 0 / 486.6 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.807e-05/0.4663, allocations: 28 kB / 486.6 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005954/0.4722, allocations: 3.884 MB / 490.5 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/0.4729, allocations: 411 kB / 490.9 MB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005804/0.4735, allocations: 383.2 kB / 491.3 MB, free: 4.566 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001186/0.4736, allocations: 105.9 kB / 491.4 MB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006043/0.4742, allocations: 436.1 kB / 491.8 MB, free: 3.984 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 2.875e-06/0.4742, allocations: 4 kB / 491.8 MB, free: 3.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.00628/0.4805, allocations: 3.066 MB / 494.9 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.798e-05/0.4806, allocations: 230.5 kB / 495.1 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.481, allocations: 313.8 kB / 495.4 MB, free: 260 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.289e-05/0.481, allocations: 25.7 kB / 495.4 MB, free: 228 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002838/0.4813, allocations: 411.5 kB / 495.8 MB, free: 15.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/0.4816, allocations: 398 kB / 496.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-05/0.4816, allocations: 0 / 496.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.4818, allocations: 382.7 kB / 496.6 MB, free: 15.03 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.4823, allocations: 306.6 kB / 496.9 MB, free: 14.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006435/0.483, allocations: 0.5326 MB / 497.4 MB, free: 14.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008839/0.4838, allocations: 420.1 kB / 497.8 MB, free: 13.69 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4839, allocations: 5.312 kB / 497.8 MB, free: 13.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002355/0.4862, allocations: 1.262 MB / 499.1 MB, free: 12.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4862, allocations: 8 kB / 499.1 MB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.4863, allocations: 4 kB / 499.1 MB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008691/0.4871, allocations: 335 kB / 499.4 MB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000935/0.4881, allocations: 215.6 kB / 499.6 MB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006916/0.495, allocations: 7.194 MB / 0.495 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008021/0.4958, allocations: 31.98 kB / 0.495 GB, free: 4.148 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-05/0.4959, allocations: 52.05 kB / 0.495 GB, free: 4.098 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002276/0.4962, allocations: 140.7 kB / 0.4952 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.4963, allocations: 75.09 kB / 0.4952 GB, free: 3.879 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002353/0.4987, allocations: 1.131 MB / 0.4964 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.4987, allocations: 19.98 kB / 0.4964 GB, free: 2.707 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.4987, allocations: 12 kB / 0.4964 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.4987, allocations: 11.88 kB / 0.4964 GB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0037/0.5024, allocations: 2.429 MB / 0.4988 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5025, allocations: 0 / 0.4988 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007478/0.5032, allocations: 155.9 kB / 0.4989 GB, free: 28 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1593/0.6625, allocations: 311.9 kB / 0.4992 GB, free: 147.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001648/0.6627, allocations: 7.109 kB / 0.4992 GB, free: 147.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005311/0.668, allocations: 6.934 MB / 0.506 GB, free: 142.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/0.6681, allocations: 10.92 kB / 0.506 GB, free: 142.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002651/0.6707, allocations: 1.69 MB / 0.5077 GB, free: 142.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.671, allocations: 223.2 kB / 0.5079 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.6712, allocations: 3.469 kB / 0.5079 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005202/0.6717, allocations: 18.42 kB / 0.5079 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.6718, allocations: 68.33 kB / 0.508 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.228e-05/0.6719, allocations: 38.67 kB / 0.508 GB, free: 142.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002254/0.6721, allocations: 228 kB / 0.5082 GB, free: 142.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001083/0.6732, allocations: 266.9 kB / 0.5085 GB, free: 142.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000314/0.6735, allocations: 180.2 kB / 0.5086 GB, free: 142.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.6754, allocations: 1.399 MB / 0.51 GB, free: 141.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.6754, allocations: 0 / 0.51 GB, free: 141.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.6765, allocations: 0.9654 MB / 0.5109 GB, free: 141.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.6769, allocations: 29.23 kB / 0.511 GB, free: 141.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004759/0.6816, allocations: 2.007 MB / 0.5129 GB, free: 141 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006475/0.6823, allocations: 1.1 MB / 0.514 GB, free: 140.3 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6823, allocations: 0 / 0.514 GB, free: 140.3 MB / 394.7 MB Notification: Performance of Templates: time 0.01799/0.7003, allocations: 12.73 MB / 0.5264 GB, free: 139.7 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches