Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 185.6 kB / 8.136 MB, free: 2.219 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.201/1.201, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.001031/0.001031, allocations: 97.39 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.626e-06/8.646e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2385, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.3505, allocations: 92.39 MB / 479.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.3508, allocations: 84.64 kB / 479.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2317/0.5824, allocations: 29.51 MB / 0.497 GB, free: 91.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.624e-05/0.5825, allocations: 18.88 kB / 0.497 GB, free: 91.54 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.002866/0.5854, allocations: 1.237 MB / 0.4982 GB, free: 90.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.5854, allocations: 7.531 kB / 0.4982 GB, free: 90.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002472/0.5879, allocations: 421.5 kB / 0.4986 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006701/0.5886, allocations: 496.4 kB / 0.4991 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.5886, allocations: 43.7 kB / 0.4991 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.5888, allocations: 61.59 kB / 0.4992 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001345/0.5901, allocations: 0.8434 MB / 0.5 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.5914, allocations: 0.7518 MB / 0.5007 GB, free: 90.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.5914, allocations: 7.844 kB / 0.5007 GB, free: 90.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.57e-05/0.5915, allocations: 3.531 kB / 0.5007 GB, free: 90.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.5915, allocations: 27.5 kB / 0.5008 GB, free: 90.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004952/0.5965, allocations: 3.545 MB / 0.5042 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.5971, allocations: 405.2 kB / 0.5046 GB, free: 89.28 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004915/0.5976, allocations: 384 kB / 0.505 GB, free: 89.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.5977, allocations: 99.56 kB / 0.5051 GB, free: 89.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005067/0.5982, allocations: 433.1 kB / 0.5055 GB, free: 89.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.394e-06/0.5982, allocations: 2.906 kB / 0.5055 GB, free: 89.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.005661/0.6039, allocations: 3.023 MB / 0.5084 GB, free: 88.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/0.604, allocations: 223.7 kB / 0.5087 GB, free: 87.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.6043, allocations: 304.1 kB / 0.509 GB, free: 87.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/0.6043, allocations: 29.52 kB / 0.509 GB, free: 87.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.6045, allocations: 381.8 kB / 0.5093 GB, free: 87.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.6047, allocations: 399.2 kB / 0.5097 GB, free: 87.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.596e-05/0.6048, allocations: 0 / 0.5097 GB, free: 87.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.975e-05/0.6049, allocations: 375 kB / 0.5101 GB, free: 86.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004167/0.6053, allocations: 296.4 kB / 0.5104 GB, free: 86.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.6058, allocations: 0.4889 MB / 0.5108 GB, free: 86.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007723/0.6066, allocations: 411.2 kB / 0.5112 GB, free: 86.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.6066, allocations: 3.875 kB / 0.5112 GB, free: 86.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002039/0.6087, allocations: 1.208 MB / 0.5124 GB, free: 86.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.6087, allocations: 7.781 kB / 0.5124 GB, free: 86.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.6087, allocations: 7.844 kB / 0.5124 GB, free: 86.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007789/0.6095, allocations: 341.6 kB / 0.5128 GB, free: 86.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008454/0.6104, allocations: 196.8 kB / 0.5129 GB, free: 86.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005491/0.6159, allocations: 7.2 MB / 0.52 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008381/0.6167, allocations: 34.69 kB / 0.52 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-05/0.6168, allocations: 47.03 kB / 0.5201 GB, free: 80.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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.0001966/0.617, allocations: 126.5 kB / 0.5202 GB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.6171, allocations: 69.75 kB / 0.5202 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/0.6193, allocations: 1.125 MB / 0.5213 GB, free: 79.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-05/0.6193, allocations: 16.78 kB / 0.5214 GB, free: 79.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/0.6193, allocations: 7.594 kB / 0.5214 GB, free: 79.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.6194, allocations: 9.453 kB / 0.5214 GB, free: 79.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003928/0.6233, allocations: 2.386 MB / 0.5237 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.6233, allocations: 0 / 0.5237 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007225/0.6241, allocations: 148.5 kB / 0.5238 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008178/0.6249, allocations: 320.2 kB / 0.5241 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.737e-05/0.625, allocations: 7.375 kB / 0.5242 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005208/0.6302, allocations: 6.944 MB / 0.5309 GB, free: 71.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.8e-06/0.6302, allocations: 4 kB / 0.5309 GB, free: 71.32 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002563/0.6328, allocations: 1.669 MB / 0.5326 GB, free: 69.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000306/0.6331, allocations: 220.5 kB / 0.5328 GB, free: 69.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.6332, allocations: 0 / 0.5328 GB, free: 69.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005292/0.6338, allocations: 19.94 kB / 0.5328 GB, free: 69.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.6339, allocations: 65.94 kB / 0.5329 GB, free: 69.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.79e-05/0.6339, allocations: 35.94 kB / 0.5329 GB, free: 69.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002103/0.6342, allocations: 223.1 kB / 0.5331 GB, free: 69.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001095/0.6353, allocations: 255.6 kB / 0.5334 GB, free: 68.96 MB / 378.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_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * 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,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002947/0.6356, allocations: 181.8 kB / 0.5335 GB, free: 68.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.6379, allocations: 1.377 MB / 0.5349 GB, free: 67.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/0.638, allocations: 0 / 0.5349 GB, free: 67.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.6398, allocations: 0.9567 MB / 0.5358 GB, free: 66.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006889/0.6405, allocations: 29.45 kB / 0.5358 GB, free: 66.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/0.6452, allocations: 1.459 MB / 0.5373 GB, free: 65.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008016/0.646, allocations: 1.091 MB / 0.5383 GB, free: 64.18 MB / 378.7 MB Notification: Performance of SimCode: time 1.133e-06/0.646, allocations: 0 / 0.5383 GB, free: 64.18 MB / 378.7 MB Notification: Performance of Templates: time 0.01934/0.6654, allocations: 12.55 MB / 0.5506 GB, free: 55.04 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches