Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") [: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.0009986/0.0009988, allocations: 183.9 kB / 8.133 MB, free: 2.199 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.139/1.139, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.000862/0.000862, allocations: 93.11 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.334e-06, allocations: 4 kB / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1967, allocations: 50.38 MB / 386.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08711/0.2839, allocations: 81.44 MB / 468.3 MB, free: 5.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.2841, allocations: 76.97 kB / 468.4 MB, free: 5.312 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03008/0.3142, allocations: 16.16 MB / 484.6 MB, free: 5.266 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.3142, allocations: 4 kB / 484.6 MB, free: 5.262 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.0004438/0.3147, allocations: 0.6135 MB / 485.2 MB, free: 4.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.3147, allocations: 12.03 kB / 485.2 MB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.3148, allocations: 35.53 kB / 485.2 MB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.3151, allocations: 261.4 kB / 485.5 MB, free: 4.238 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.3151, allocations: 11.98 kB / 485.5 MB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.3151, allocations: 4 kB / 485.5 MB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001203/0.3153, allocations: 51.98 kB / 485.6 MB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.3154, allocations: 126.7 kB / 485.7 MB, free: 4.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.611e-06/0.3155, allocations: 0 / 485.7 MB, free: 4.043 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.3155, allocations: 3.984 kB / 485.7 MB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3155, allocations: 4 kB / 485.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005847/0.3161, allocations: 449 kB / 486.1 MB, free: 3.559 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.3162, allocations: 86.56 kB / 486.2 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.3163, allocations: 76.91 kB / 486.3 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.3164, allocations: 0 / 486.3 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000184/0.3165, allocations: 190.7 kB / 486.5 MB, free: 3.176 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 3.256e-06/0.3166, allocations: 4 kB / 486.5 MB, free: 3.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003253/0.3169, allocations: 193.2 kB / 486.7 MB, free: 2.977 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.317, allocations: 166.2 kB / 486.8 MB, free: 2.777 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004629/0.3174, allocations: 445.8 kB / 487.3 MB, free: 2.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.3175, allocations: 29.7 kB / 487.3 MB, free: 2.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.595e-05/0.3175, allocations: 89.14 kB / 487.4 MB, free: 2.211 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.3176, allocations: 35.55 kB / 487.4 MB, free: 2.176 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.614e-05/0.3176, allocations: 4 kB / 487.4 MB, free: 2.172 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.892e-05/0.3177, allocations: 318.8 kB / 487.7 MB, free: 1.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.3178, allocations: 59.98 kB / 487.8 MB, free: 1.793 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.113e-05/0.3179, allocations: 52 kB / 487.8 MB, free: 1.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.56e-05/0.3179, allocations: 47.48 kB / 487.9 MB, free: 1.699 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.318, allocations: 0 / 487.9 MB, free: 1.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002581/0.3182, allocations: 177.5 kB / 488.1 MB, free: 1.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.3182, allocations: 4 kB / 488.1 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3183, allocations: 7.906 kB / 488.1 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3183, allocations: 0 / 488.1 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.354e-05/0.3183, allocations: 0.9375 kB / 488.1 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.875e-06/0.3183, allocations: 0 / 488.1 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.3184, allocations: 16.06 kB / 488.1 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-05/0.3185, allocations: 63.86 kB / 488.2 MB, free: 1.43 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,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.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.0001537/0.3186, allocations: 233.9 kB / 488.4 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.3187, allocations: 43.47 kB / 488.4 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.3188, allocations: 71.22 kB / 488.5 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3188, allocations: 4 kB / 488.5 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3188, allocations: 0 / 488.5 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3188, allocations: 4 kB / 488.5 MB, free: 1.047 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005814/0.3194, allocations: 0.5613 MB / 489.1 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3194, allocations: 0 / 489.1 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.877e-06/0.3194, allocations: 0 / 489.1 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3194, allocations: 4 kB / 489.1 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.3195, allocations: 11.98 kB / 489.1 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.3195, allocations: 0 / 489.1 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3195, allocations: 7.938 kB / 489.1 MB, free: 428 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003223/0.3198, allocations: 323 kB / 489.4 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.3201, allocations: 252.4 kB / 489.7 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.3202, allocations: 12 kB / 489.7 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.3204, allocations: 11.98 kB / 489.7 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.154e-05/0.3205, allocations: 31.88 kB / 489.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.3205, allocations: 59.92 kB / 489.8 MB, free: 15.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003701/0.3209, allocations: 366.9 kB / 490.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002607/0.3212, allocations: 40 kB / 490.2 MB, free: 15.32 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,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.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.0001155/0.3213, allocations: 115.1 kB / 490.3 MB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003035/0.3216, allocations: 258.7 kB / 490.5 MB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.3216, allocations: 4 kB / 490.5 MB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.3219, allocations: 258.8 kB / 490.8 MB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.3223, allocations: 97.25 kB / 490.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008667/0.3232, allocations: 0.5111 MB / 491.4 MB, free: 14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000474/0.3237, allocations: 0.8173 MB / 492.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3237, allocations: 0 / 492.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of Templates: time 0.005899/0.3296, allocations: 3.89 MB / 496.1 MB, free: 9.199 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches