Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.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.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.001591/0.00159, allocations: 179.8 kB / 8.154 MB, free: 2.18 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.694/1.694, allocations: 205.2 MB / 213.8 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.001267/0.001266, allocations: 91.03 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.915e-06, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2274, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1224/0.3498, allocations: 80.53 MB / 442.4 MB, free: 5.523 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.3502, allocations: 82 kB / 442.4 MB, free: 5.445 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.05635/0.4065, allocations: 15.94 MB / 458.4 MB, free: 5.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.4066, allocations: 4 kB / 458.4 MB, free: 5.605 MB / 346.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.0007363/0.4073, allocations: 0.6202 MB / 459 MB, free: 4.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4074, allocations: 8.031 kB / 459 MB, free: 4.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.4075, allocations: 43.53 kB / 459.1 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.408, allocations: 249.5 kB / 459.3 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.408, allocations: 4 kB / 459.3 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.4081, allocations: 9.031 kB / 459.3 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002027/0.4083, allocations: 51.98 kB / 459.4 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.4086, allocations: 125.5 kB / 459.5 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.4086, allocations: 0 / 459.5 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.4087, allocations: 4 kB / 459.5 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.4087, allocations: 4 kB / 459.5 MB, free: 4.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.4097, allocations: 453 kB / 459.9 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.41, allocations: 94.55 kB / 460 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.4102, allocations: 80.84 kB / 460.1 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.4102, allocations: 0 / 460.1 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003282/0.4105, allocations: 186.8 kB / 460.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.235e-06/0.4106, allocations: 6.281 kB / 460.3 MB, free: 3.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005803/0.4111, allocations: 201.3 kB / 460.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.4113, allocations: 166.2 kB / 460.7 MB, free: 3.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008928/0.4122, allocations: 440.5 kB / 461.1 MB, free: 2.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.473e-05/0.4123, allocations: 29.7 kB / 461.1 MB, free: 2.641 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.4123, allocations: 155.5 kB / 461.3 MB, free: 2.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.168e-05/0.4124, allocations: 31.64 kB / 461.3 MB, free: 2.453 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.998e-05/0.4125, allocations: 12 kB / 461.3 MB, free: 2.441 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4126, allocations: 310.8 kB / 461.6 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.4128, allocations: 55.98 kB / 461.7 MB, free: 2.074 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.4129, allocations: 48.55 kB / 461.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.4131, allocations: 51.62 kB / 461.8 MB, free: 1.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4131, allocations: 0 / 461.8 MB, free: 1.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000471/0.4136, allocations: 169.4 kB / 461.9 MB, free: 1.809 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.4136, allocations: 8 kB / 461.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4137, allocations: 0 / 461.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.4137, allocations: 11.92 kB / 461.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.38e-05/0.4137, allocations: 0 / 461.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.4137, allocations: 0 / 461.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.4139, allocations: 8 kB / 462 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.414, allocations: 59.92 kB / 462 MB, free: 1.723 MB / 346.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.0002243/0.4143, allocations: 170.3 kB / 462.2 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.08e-05/0.4144, allocations: 35.62 kB / 462.2 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002363/0.4147, allocations: 63.25 kB / 462.3 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.4147, allocations: 4.062 kB / 462.3 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.4147, allocations: 13.67 kB / 462.3 MB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.4147, allocations: 0 / 462.3 MB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.4158, allocations: 0.5574 MB / 462.9 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4158, allocations: 4 kB / 462.9 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.083e-05/0.4158, allocations: 0 / 462.9 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.4158, allocations: 0 / 462.9 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.4159, allocations: 23.89 kB / 462.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4159, allocations: 3.938 kB / 462.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4159, allocations: 4 kB / 462.9 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005949/0.4165, allocations: 307 kB / 463.2 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/0.4171, allocations: 252.5 kB / 463.4 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.4173, allocations: 12 kB / 463.4 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.4175, allocations: 15.89 kB / 463.5 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.4177, allocations: 23.98 kB / 463.5 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.833e-05/0.4178, allocations: 63.92 kB / 463.5 MB, free: 76 kB / 346.7 MB Notification: Performance of sort global known variables: time 0.0008096/0.4186, allocations: 371 kB / 463.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004004/0.4191, allocations: 36 kB / 463.9 MB, free: 15.68 MB / 362.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.0002068/0.4193, allocations: 114.9 kB / 464.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000553/0.4198, allocations: 254.8 kB / 464.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4199, allocations: 0.6562 kB / 464.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003983/0.4203, allocations: 258.8 kB / 464.6 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008859/0.4212, allocations: 100.5 kB / 464.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.4228, allocations: 0.5651 MB / 465.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006791/0.4235, allocations: 0.8173 MB / 466 MB, free: 13.47 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4236, allocations: 0 / 466 MB, free: 13.47 MB / 362.7 MB Notification: Performance of Templates: time 0.00641/0.43, allocations: 2.527 MB / 468.6 MB, free: 10.89 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches