Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") [: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.0009273/0.0009274, allocations: 183.6 kB / 8.135 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.154/1.154, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.0008578/0.0008578, allocations: 98.31 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.156e-06/8.196e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1888, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08178/0.2706, allocations: 81.44 MB / 468.3 MB, free: 5.363 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.2708, allocations: 67.91 kB / 468.4 MB, free: 5.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03181/0.3027, allocations: 16.16 MB / 484.6 MB, free: 5.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.3027, allocations: 4 kB / 484.6 MB, free: 5.211 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005162/0.3032, allocations: 0.6134 MB / 485.2 MB, free: 4.527 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.3033, allocations: 8.031 kB / 485.2 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.3033, allocations: 39.53 kB / 485.2 MB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.3036, allocations: 259.4 kB / 485.5 MB, free: 4.191 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.3037, allocations: 7.938 kB / 485.5 MB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.3037, allocations: 12 kB / 485.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001276/0.3038, allocations: 51.98 kB / 485.6 MB, free: 4.121 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.304, allocations: 121.5 kB / 485.7 MB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.304, allocations: 0 / 485.7 MB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.3041, allocations: 7.984 kB / 485.7 MB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3041, allocations: 0 / 485.7 MB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.3047, allocations: 457 kB / 486.1 MB, free: 3.504 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.3048, allocations: 86.56 kB / 486.2 MB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3049, allocations: 72.91 kB / 486.3 MB, free: 3.336 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.305, allocations: 4 kB / 486.3 MB, free: 3.332 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.3051, allocations: 182.7 kB / 486.5 MB, free: 3.129 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.3052, allocations: 0 / 486.5 MB, free: 3.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003374/0.3055, allocations: 205.1 kB / 486.7 MB, free: 2.922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.3056, allocations: 166.2 kB / 486.8 MB, free: 2.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000473/0.3061, allocations: 444.5 kB / 487.3 MB, free: 2.285 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.3061, allocations: 29.7 kB / 487.3 MB, free: 2.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.3061, allocations: 89.12 kB / 487.4 MB, free: 2.156 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.3062, allocations: 27.62 kB / 487.4 MB, free: 2.129 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.3062, allocations: 8 kB / 487.4 MB, free: 2.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.404e-05/0.3063, allocations: 323.6 kB / 487.7 MB, free: 1.797 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.955e-05/0.3064, allocations: 51.98 kB / 487.8 MB, free: 1.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.728e-05/0.3065, allocations: 59.92 kB / 487.8 MB, free: 1.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.602e-05/0.3066, allocations: 43.84 kB / 487.9 MB, free: 1.645 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3066, allocations: 0 / 487.9 MB, free: 1.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002719/0.3069, allocations: 181 kB / 488.1 MB, free: 1.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.3069, allocations: 4 kB / 488.1 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.3069, allocations: 3.906 kB / 488.1 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.3069, allocations: 1.031 kB / 488.1 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.682e-05/0.3069, allocations: 0 / 488.1 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.3069, allocations: 4 kB / 488.1 MB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.3071, allocations: 15.98 kB / 488.1 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-05/0.3071, allocations: 56.09 kB / 488.2 MB, free: 1.383 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.3073, allocations: 241.9 kB / 488.4 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.752e-05/0.3074, allocations: 47.41 kB / 488.4 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.3075, allocations: 67.08 kB / 488.5 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3075, allocations: 0 / 488.5 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3075, allocations: 0 / 488.5 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3075, allocations: 0 / 488.5 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006061/0.3081, allocations: 0.573 MB / 489.1 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3081, allocations: 0 / 489.1 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.314e-06/0.3081, allocations: 0 / 489.1 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3081, allocations: 0 / 489.1 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.3082, allocations: 12 kB / 489.1 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3082, allocations: 0 / 489.1 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3082, allocations: 0 / 489.1 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003389/0.3085, allocations: 327 kB / 489.4 MB, free: 36 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000325/0.3089, allocations: 256.4 kB / 489.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.194e-05/0.3089, allocations: 4.188 kB / 489.7 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.3091, allocations: 19.98 kB / 489.7 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.823e-05/0.3092, allocations: 31.86 kB / 489.7 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.279e-05/0.3093, allocations: 59.94 kB / 489.8 MB, free: 15.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003857/0.3097, allocations: 370.9 kB / 490.1 MB, free: 15.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002902/0.31, allocations: 36 kB / 490.2 MB, free: 15.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001846/0.3102, allocations: 113.9 kB / 490.3 MB, free: 15.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003365/0.3105, allocations: 254.8 kB / 490.5 MB, free: 14.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3105, allocations: 3.938 kB / 490.5 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.3108, allocations: 266.8 kB / 490.8 MB, free: 14.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004689/0.3112, allocations: 91.47 kB / 490.9 MB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009082/0.3122, allocations: 0.508 MB / 491.4 MB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004162/0.3126, allocations: 0.8251 MB / 492.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3126, allocations: 0 / 492.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of Templates: time 0.007239/0.3198, allocations: 3.883 MB / 496.1 MB, free: 9.152 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches