Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 169.5 kB / 25 MB, free: 8.793 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.035/1.035, allocations: 177.1 MB / 205.3 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 273 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.507e-05, allocations: 2.312 kB / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002042/0.002057, allocations: 1.532 MB / 274.6 MB, free: 304 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.003665, allocations: 0.8536 MB / 275.4 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.032e-05/0.003715, allocations: 0 / 275.4 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.811e-05/0.003803, allocations: 11.86 kB / 275.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.493e-05/0.003878, allocations: 19.88 kB / 275.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.004115, allocations: 47.88 kB / 275.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.0043, allocations: 135.7 kB / 275.6 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.715e-05/0.004397, allocations: 16.16 kB / 275.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007575/0.005155, allocations: 0.5927 MB / 276.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.005272, allocations: 67.8 kB / 276.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.005306, allocations: 8 kB / 276.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.378e-05/0.00533, allocations: 15.94 kB / 276.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.874e-05/0.005409, allocations: 63.78 kB / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.853e-05/0.005488, allocations: 51.73 kB / 276.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.005767, allocations: 294.9 kB / 276.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.005769, allocations: 0 / 276.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.00577, allocations: 0 / 276.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.005774, allocations: 0 / 276.7 MB, free: 14.12 MB / 266.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.0007003/0.006474, allocations: 0.7863 MB / 277.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.006513, allocations: 12.03 kB / 277.5 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.063e-05/0.006594, allocations: 44.7 kB / 277.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.006818, allocations: 222.8 kB / 277.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.006838, allocations: 4.375 kB / 277.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.334e-05/0.006862, allocations: 8.375 kB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.00717, allocations: 249.7 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.007177, allocations: 4.188 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.007196, allocations: 4.375 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.007204, allocations: 3.938 kB / 278.1 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.007339, allocations: 170.7 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006077/0.007947, allocations: 499.4 kB / 278.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.008109, allocations: 193.8 kB / 278.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.008237, allocations: 170.5 kB / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.008245, allocations: 7.938 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.008487, allocations: 327.1 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.008488, allocations: 0 / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006929/0.009181, allocations: 0.689 MB / 280.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/0.00925, allocations: 174.2 kB / 280.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007186/0.009969, allocations: 0.6154 MB / 280.9 MB, free: 9.555 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.009994, allocations: 33.7 kB / 280.9 MB, free: 9.516 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.01007, allocations: 151.8 kB / 281.1 MB, free: 9.359 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.672e-05/0.01011, allocations: 23.86 kB / 281.1 MB, free: 9.336 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.901e-05/0.01021, allocations: 99.09 kB / 281.2 MB, free: 9.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.01033, allocations: 0.4962 MB / 281.7 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.01046, allocations: 162.8 kB / 281.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.0106, allocations: 190.1 kB / 282 MB, free: 8.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.01083, allocations: 333 kB / 282.4 MB, free: 7.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.01083, allocations: 0 / 282.4 MB, free: 7.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004867/0.01132, allocations: 495 kB / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.902e-05/0.01139, allocations: 126.8 kB / 283 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.01139, allocations: 112 / 283 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.0114, allocations: 11.97 kB / 283 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.482e-05/0.01141, allocations: 0 / 283 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.01142, allocations: 0 / 283 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.01152, allocations: 8 kB / 283 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/0.01158, allocations: 67.92 kB / 283 MB, free: 7.164 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004908/0.01207, allocations: 385.2 kB / 283.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.01213, allocations: 51.7 kB / 283.5 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.894e-05/0.01222, allocations: 63.06 kB / 283.5 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.01222, allocations: 0 / 283.5 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01223, allocations: 0 / 283.5 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.01223, allocations: 4 kB / 283.5 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008932/0.01312, allocations: 0.9556 MB / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.01312, allocations: 0 / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.168e-06/0.01313, allocations: 0 / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.01313, allocations: 0 / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.01315, allocations: 15.98 kB / 284.5 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.01315, allocations: 0 / 284.5 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01316, allocations: 0 / 284.5 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005474/0.0137, allocations: 0.7084 MB / 285.2 MB, free: 4.797 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/0.01399, allocations: 189.4 kB / 285.4 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.01404, allocations: 8.062 kB / 285.4 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.01414, allocations: 16 kB / 285.4 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.458e-05/0.01422, allocations: 23.97 kB / 285.4 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.01427, allocations: 59.98 kB / 285.5 MB, free: 4.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000437/0.01471, allocations: 426.7 kB / 285.9 MB, free: 4.098 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01471, allocations: 0 / 285.9 MB, free: 4.098 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002695/0.01498, allocations: 48 kB / 286 MB, free: 4.051 MB / 266.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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.456e-05/0.01507, allocations: 114.9 kB / 286.1 MB, free: 3.926 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004939/0.01557, allocations: 0.5965 MB / 286.7 MB, free: 3.227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01557, allocations: 4.062 kB / 286.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.01581, allocations: 431.9 kB / 287.1 MB, free: 2.727 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004587/0.01627, allocations: 136.7 kB / 287.2 MB, free: 2.602 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008646/0.01713, allocations: 0.7446 MB / 288 MB, free: 1.805 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.942e-05/0.01722, allocations: 99.25 kB / 288.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.698e-05/0.01725, allocations: 8.719 kB / 288.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.182e-05/0.01727, allocations: 12.5 kB / 288.1 MB, free: 1.664 MB / 266.7 MB Notification: Performance of SimCode: time 6.12e-07/0.01727, allocations: 4 kB / 288.1 MB, free: 1.66 MB / 266.7 MB Notification: Performance of Templates: time 0.00687/0.02414, allocations: 5.029 MB / 293.1 MB, free: 12.6 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0038169608451426]