Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001801/0.001801, allocations: 183.7 kB / 8.154 MB, free: 2.184 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.708/1.708, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.00133/0.00133, allocations: 90.27 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.195e-05/1.221e-05, allocations: 4 kB / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2592, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.4052, allocations: 89.99 MB / 451.8 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.4055, allocations: 79.95 kB / 451.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.122/0.5275, allocations: 29.91 MB / 481.8 MB, free: 13.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.397e-05/0.5276, allocations: 20 kB / 481.8 MB, free: 13.81 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.00549/0.5331, allocations: 1.253 MB / 483.1 MB, free: 12.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.5332, allocations: 9.719 kB / 483.1 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005374/0.5386, allocations: 0.4903 MB / 483.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.5402, allocations: 0.4992 MB / 484.1 MB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.93e-05/0.5403, allocations: 36 kB / 484.1 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002556/0.5405, allocations: 72 kB / 484.2 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003342/0.5439, allocations: 0.9066 MB / 485.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002686/0.5466, allocations: 0.7837 MB / 485.9 MB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.481e-05/0.5467, allocations: 3.906 kB / 485.9 MB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.5469, allocations: 0 / 485.9 MB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.345e-05/0.5469, allocations: 28 kB / 485.9 MB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01171/0.5587, allocations: 3.88 MB / 489.8 MB, free: 5.492 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.5599, allocations: 415.5 kB / 490.2 MB, free: 5.082 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.561, allocations: 384.3 kB / 490.6 MB, free: 4.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002101/0.5613, allocations: 105.9 kB / 490.7 MB, free: 4.582 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.5624, allocations: 440.1 kB / 491.1 MB, free: 4.121 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.939e-06/0.5624, allocations: 0 / 491.1 MB, free: 4.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.01188/0.5743, allocations: 3.064 MB / 494.2 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.5745, allocations: 230.5 kB / 494.4 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006567/0.5752, allocations: 318.6 kB / 494.7 MB, free: 396 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001734/0.5754, allocations: 29.7 kB / 494.7 MB, free: 360 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004835/0.5759, allocations: 457.8 kB / 495.2 MB, free: 15.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005468/0.5764, allocations: 405.9 kB / 495.6 MB, free: 15.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.605e-05/0.5765, allocations: 4 kB / 495.6 MB, free: 15.49 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.5767, allocations: 358.8 kB / 495.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009888/0.5777, allocations: 306.6 kB / 496.2 MB, free: 14.83 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.5789, allocations: 0.5287 MB / 496.8 MB, free: 14.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.5806, allocations: 416.2 kB / 497.2 MB, free: 13.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/0.5807, allocations: 5.312 kB / 497.2 MB, free: 13.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004574/0.5852, allocations: 1.242 MB / 498.4 MB, free: 12.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.5853, allocations: 4 kB / 498.4 MB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/0.5854, allocations: 11.94 kB / 498.4 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.5867, allocations: 311.3 kB / 498.7 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/0.5888, allocations: 215.7 kB / 498.9 MB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/0.6016, allocations: 7.259 MB / 0.4943 GB, free: 4.262 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.603, allocations: 31.98 kB / 0.4944 GB, free: 4.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.6032, allocations: 52.06 kB / 0.4944 GB, free: 4.18 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,(6,38.9%) 14,(6,38.9%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003395/0.6036, allocations: 49.36 kB / 0.4945 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.6038, allocations: 75.89 kB / 0.4945 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004423/0.6082, allocations: 1.147 MB / 0.4957 GB, free: 2.883 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.864e-05/0.6083, allocations: 12 kB / 0.4957 GB, free: 2.871 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.006e-05/0.6084, allocations: 8 kB / 0.4957 GB, free: 2.863 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/0.6084, allocations: 7.969 kB / 0.4957 GB, free: 2.855 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00711/0.6155, allocations: 2.429 MB / 0.4981 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.6156, allocations: 0 / 0.4981 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/0.6172, allocations: 151.8 kB / 0.4982 GB, free: 208 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1574/0.7746, allocations: 326.2 kB / 0.4985 GB, free: 147.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/0.7749, allocations: 11.41 kB / 0.4985 GB, free: 147.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009626/0.7845, allocations: 6.937 MB / 0.5053 GB, free: 142.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/0.7846, allocations: 3.906 kB / 0.5053 GB, free: 142.8 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004906/0.7895, allocations: 1.69 MB / 0.507 GB, free: 142.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006114/0.7902, allocations: 218 kB / 0.5072 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.7904, allocations: 3.844 kB / 0.5072 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.7914, allocations: 23.2 kB / 0.5072 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.7916, allocations: 66.75 kB / 0.5073 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.561e-05/0.7917, allocations: 34.41 kB / 0.5073 GB, free: 142.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003858/0.7921, allocations: 230.2 kB / 0.5075 GB, free: 142.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001855/0.794, allocations: 268.8 kB / 0.5078 GB, free: 142.4 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.0005044/0.7946, allocations: 173.5 kB / 0.5079 GB, free: 142.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00376/0.7983, allocations: 1.419 MB / 0.5093 GB, free: 141.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/0.7984, allocations: 2.625 kB / 0.5093 GB, free: 141.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002573/0.801, allocations: 0.9654 MB / 0.5103 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.0008484/0.8019, allocations: 27.89 kB / 0.5103 GB, free: 141.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008828/0.8108, allocations: 2.035 MB / 0.5123 GB, free: 141 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/0.812, allocations: 1.128 MB / 0.5134 GB, free: 140.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.733e-06/0.8121, allocations: 0 / 0.5134 GB, free: 140.3 MB / 394.7 MB Notification: Performance of Templates: time 0.04507/0.8572, allocations: 26.83 MB / 0.5396 GB, free: 136.4 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches