Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001153/0.001153, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001992/0.001992, allocations: 161.2 kB / 25.6 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9392/0.9392, allocations: 158.6 MB / 187.5 MB, free: 2.812 MB / 170.7 MB " [Timeout remaining time 179] 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 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_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 251.5 MB, free: 7.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.349e-05, allocations: 2.312 kB / 251.5 MB, free: 7.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.005084/0.005097, allocations: 1.503 MB / 253 MB, free: 5.828 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.00703, allocations: 0.8624 MB / 253.8 MB, free: 4.957 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.531e-05/0.007086, allocations: 0 / 253.8 MB, free: 4.957 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.385e-05/0.00718, allocations: 11.86 kB / 253.8 MB, free: 4.945 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.737e-05/0.007267, allocations: 19.86 kB / 253.9 MB, free: 4.926 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003287/0.01055, allocations: 51.88 kB / 253.9 MB, free: 4.875 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001757/0.01073, allocations: 127.7 kB / 254 MB, free: 4.75 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.457e-05/0.01081, allocations: 20.2 kB / 254.1 MB, free: 4.727 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006085/0.01142, allocations: 0.5966 MB / 254.7 MB, free: 4.129 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.01154, allocations: 63.81 kB / 254.7 MB, free: 4.066 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.01158, allocations: 12 kB / 254.7 MB, free: 4.055 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.748e-05/0.01161, allocations: 11.94 kB / 254.7 MB, free: 4.043 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.499e-05/0.01169, allocations: 67.7 kB / 254.8 MB, free: 3.977 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.58e-05/0.01176, allocations: 55.8 kB / 254.9 MB, free: 3.922 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.01205, allocations: 286.9 kB / 255.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.01205, allocations: 4 kB / 255.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.01205, allocations: 0 / 255.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.01205, allocations: 0 / 255.1 MB, free: 3.637 MB / 234.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.0006867/0.01274, allocations: 0.7862 MB / 255.9 MB, free: 2.789 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.01279, allocations: 15.98 kB / 255.9 MB, free: 2.773 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.624e-05/0.01286, allocations: 44.7 kB / 256 MB, free: 2.73 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.01307, allocations: 218.9 kB / 256.2 MB, free: 2.484 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.01309, allocations: 8.375 kB / 256.2 MB, free: 2.477 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.01311, allocations: 8.375 kB / 256.2 MB, free: 2.469 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003439/0.01655, allocations: 241.7 kB / 256.5 MB, free: 2.199 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.01656, allocations: 4.188 kB / 256.5 MB, free: 2.195 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.01658, allocations: 8.312 kB / 256.5 MB, free: 2.188 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.01658, allocations: 3.938 kB / 256.5 MB, free: 2.184 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.01669, allocations: 158.4 kB / 256.6 MB, free: 2.008 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004639/0.01715, allocations: 408 kB / 257 MB, free: 1.582 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.01729, allocations: 177.8 kB / 257.2 MB, free: 1.371 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.0174, allocations: 170.5 kB / 257.4 MB, free: 1.176 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-06/0.01741, allocations: 0 / 257.4 MB, free: 1.176 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/0.01765, allocations: 315.1 kB / 257.7 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of pre-optimization done (n=13): time 2.354e-06/0.01765, allocations: 7.984 kB / 257.7 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006684/0.01832, allocations: 0.6581 MB / 258.3 MB, free: 72 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/0.01841, allocations: 170.2 kB / 258.5 MB, free: 15.87 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000581/0.01899, allocations: 0.5061 MB / 259 MB, free: 15.34 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.01901, allocations: 29.7 kB / 259 MB, free: 15.31 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.626e-05/0.01908, allocations: 151.8 kB / 259.2 MB, free: 15.16 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.01911, allocations: 27.8 kB / 259.2 MB, free: 15.13 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.01921, allocations: 91.14 kB / 259.3 MB, free: 15.03 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.003397/0.02261, allocations: 0.4962 MB / 259.8 MB, free: 14.52 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.02274, allocations: 154.8 kB / 260 MB, free: 14.35 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.02285, allocations: 182.1 kB / 260.1 MB, free: 14.14 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.02305, allocations: 321 kB / 260.4 MB, free: 13.77 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.02305, allocations: 0 / 260.4 MB, free: 13.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004327/0.02349, allocations: 475.1 kB / 260.9 MB, free: 13.25 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.524e-05/0.02355, allocations: 126.8 kB / 261 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.02355, allocations: 0 / 261 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.02357, allocations: 4 kB / 261 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.431e-05/0.02358, allocations: 4.031 kB / 261 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.02358, allocations: 0 / 261 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.02369, allocations: 12 kB / 261.1 MB, free: 13.08 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.02375, allocations: 59.92 kB / 261.1 MB, free: 13.02 MB / 250.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.0002924/0.02404, allocations: 385.2 kB / 261.5 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.174e-05/0.0241, allocations: 51.7 kB / 261.5 MB, free: 12.55 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.02421, allocations: 63.06 kB / 261.6 MB, free: 12.49 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.02421, allocations: 0 / 261.6 MB, free: 12.49 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.02421, allocations: 0 / 261.6 MB, free: 12.49 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.02422, allocations: 128 / 261.6 MB, free: 12.49 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008156/0.02503, allocations: 0.8528 MB / 262.5 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.02503, allocations: 0 / 262.5 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.216e-06/0.02504, allocations: 7.938 kB / 262.5 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.02505, allocations: 0 / 262.5 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.02507, allocations: 19.98 kB / 262.5 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.02507, allocations: 3.938 kB / 262.5 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.02508, allocations: 0 / 262.5 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007565/0.03264, allocations: 0.6692 MB / 263.2 MB, free: 10.79 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.03292, allocations: 189.3 kB / 263.3 MB, free: 10.61 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.03296, allocations: 12 kB / 263.3 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.03306, allocations: 15.98 kB / 263.4 MB, free: 10.58 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.03313, allocations: 19.98 kB / 263.4 MB, free: 10.56 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.447e-05/0.03318, allocations: 67.91 kB / 263.5 MB, free: 10.49 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002633/0.03345, allocations: 302.8 kB / 263.7 MB, free: 10.2 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03345, allocations: 0 / 263.7 MB, free: 10.2 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002502/0.0337, allocations: 44 kB / 263.8 MB, free: 10.16 MB / 250.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 0.0001024/0.0338, allocations: 111 kB / 263.9 MB, free: 10.04 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003728/0.03417, allocations: 0.5691 MB / 264.5 MB, free: 9.363 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.03417, allocations: 4.062 kB / 264.5 MB, free: 9.359 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.03439, allocations: 420 kB / 264.9 MB, free: 8.871 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.03482, allocations: 133.4 kB / 265 MB, free: 8.75 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.03871, allocations: 0.7402 MB / 265.8 MB, free: 7.961 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.121e-05/0.03879, allocations: 99.27 kB / 265.8 MB, free: 7.844 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.999e-05/0.03883, allocations: 8.703 kB / 265.9 MB, free: 7.836 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/0.03915, allocations: 198 kB / 266 MB, free: 7.641 MB / 250.7 MB Notification: Performance of SimCode: time 8.21e-07/0.03915, allocations: 0 / 266 MB, free: 7.641 MB / 250.7 MB Notification: Performance of Templates: time 0.01301/0.05216, allocations: 4.726 MB / 270.8 MB, free: 2.832 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 2.7902798410505056]