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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009774/0.0009774, allocations: 149 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9766/0.9766, allocations: 173.3 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.NXFER") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.474e-06/2.474e-06, allocations: 3.984 kB / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.421e-05/1.668e-05, allocations: 2.312 kB / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001753/0.001769, allocations: 1.514 MB / 269.9 MB, free: 4.688 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.003093, allocations: 0.8225 MB / 270.7 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5e-05/0.003143, allocations: 0 / 270.7 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.325e-05/0.003216, allocations: 15.86 kB / 270.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.771e-05/0.003284, allocations: 19.86 kB / 270.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.003482, allocations: 55.81 kB / 270.8 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.003625, allocations: 135.7 kB / 271 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.179e-05/0.003687, allocations: 12.22 kB / 271 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004549/0.004141, allocations: 0.5965 MB / 271.6 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.508e-05/0.004237, allocations: 67.8 kB / 271.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.025e-05/0.004267, allocations: 12 kB / 271.6 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.214e-05/0.004289, allocations: 8 kB / 271.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.922e-05/0.004348, allocations: 67.72 kB / 271.7 MB, free: 2.871 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.174e-05/0.00441, allocations: 55.73 kB / 271.8 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.004625, allocations: 279 kB / 272 MB, free: 2.543 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.004627, allocations: 0 / 272 MB, free: 2.543 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004628, allocations: 4 kB / 272.1 MB, free: 2.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.004632, allocations: 0 / 272.1 MB, free: 2.539 MB / 250.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.0005706/0.005203, allocations: 0.7862 MB / 272.8 MB, free: 1.691 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.005237, allocations: 8.922 kB / 272.8 MB, free: 1.684 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.904e-05/0.005296, allocations: 44.7 kB / 272.9 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.00547, allocations: 222.9 kB / 273.1 MB, free: 1.395 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.005486, allocations: 4.375 kB / 273.1 MB, free: 1.391 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.005502, allocations: 12.38 kB / 273.1 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.005727, allocations: 241.6 kB / 273.4 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.052e-06/0.005733, allocations: 192 / 273.4 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.005745, allocations: 4.375 kB / 273.4 MB, free: 1.105 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.00575, allocations: 7.875 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001009/0.005851, allocations: 158.8 kB / 273.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003821/0.006233, allocations: 400.1 kB / 273.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.006353, allocations: 185.8 kB / 274.1 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.448e-05/0.006437, allocations: 166.5 kB / 274.3 MB, free: 92 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.15e-06/0.006443, allocations: 0 / 274.3 MB, free: 92 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001911/0.006634, allocations: 323 kB / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.072e-06/0.006635, allocations: 0 / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004907/0.007125, allocations: 0.658 MB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.007181, allocations: 166.2 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004351/0.007617, allocations: 0.5061 MB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.007638, allocations: 29.7 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.709e-05/0.007695, allocations: 143.9 kB / 276.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.007727, allocations: 47.66 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.537e-05/0.007812, allocations: 83.2 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.007935, allocations: 0.4923 MB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-05/0.008024, allocations: 154.8 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.213e-05/0.008116, allocations: 178.1 kB / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.008287, allocations: 324.3 kB / 277.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.008289, allocations: 0 / 277.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003448/0.008634, allocations: 487 kB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.873e-05/0.008702, allocations: 122.8 kB / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.008707, allocations: 0 / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.008726, allocations: 4 kB / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.728e-05/0.008743, allocations: 0 / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.537e-06/0.008747, allocations: 240 / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.8e-05/0.008845, allocations: 23.92 kB / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.008894, allocations: 52 kB / 278 MB, free: 11.93 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.0002424/0.009136, allocations: 397.2 kB / 278.4 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.009181, allocations: 51.7 kB / 278.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.951e-05/0.00926, allocations: 55.09 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.009262, allocations: 4 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.009263, allocations: 0 / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.009267, allocations: 3.984 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006044/0.009872, allocations: 0.8392 MB / 279.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.009874, allocations: 4 kB / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-06/0.009878, allocations: 3.938 kB / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.00988, allocations: 0 / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.009896, allocations: 16 kB / 279.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.009897, allocations: 0 / 279.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.009899, allocations: 3.984 kB / 279.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003977/0.0103, allocations: 0.6808 MB / 280.1 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/0.01051, allocations: 189.3 kB / 280.2 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.01054, allocations: 8 kB / 280.2 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.01061, allocations: 8 kB / 280.3 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/0.01067, allocations: 27.97 kB / 280.3 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.01071, allocations: 55.94 kB / 280.3 MB, free: 9.406 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002065/0.01092, allocations: 310.8 kB / 280.6 MB, free: 9.105 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01092, allocations: 0 / 280.6 MB, free: 9.105 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00018/0.0111, allocations: 40 kB / 280.7 MB, free: 9.066 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 8.375e-05/0.01118, allocations: 123.1 kB / 280.8 MB, free: 8.938 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003019/0.01149, allocations: 0.5614 MB / 281.4 MB, free: 8.273 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.01149, allocations: 0 / 281.4 MB, free: 8.273 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.01168, allocations: 431.1 kB / 281.8 MB, free: 7.777 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.01202, allocations: 128.3 kB / 281.9 MB, free: 7.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000685/0.0127, allocations: 0.7329 MB / 282.6 MB, free: 6.875 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.775e-05/0.01277, allocations: 99.25 kB / 282.7 MB, free: 6.758 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.667e-05/0.0128, allocations: 12.72 kB / 282.8 MB, free: 6.746 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002514/0.01306, allocations: 194 kB / 282.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01306, allocations: 0 / 282.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of Templates: time 0.005415/0.01847, allocations: 4.747 MB / 287.7 MB, free: 1.789 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 240] 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","",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.628397534135729]