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.001249/0.001249, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.000919/0.000919, allocations: 144.8 kB / 24.89 MB, free: 8.789 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.9629/0.9629, allocations: 173.4 MB / 201.5 MB, free: 8.75 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 1.723e-06/1.723e-06, allocations: 0 / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.814e-05/2.987e-05, allocations: 6.25 kB / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002714/0.002744, allocations: 1.559 MB / 270.1 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.004583, allocations: 0.834 MB / 270.9 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.107e-05/0.004634, allocations: 0 / 270.9 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.004737, allocations: 7.922 kB / 270.9 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.799e-05/0.004825, allocations: 27.78 kB / 270.9 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.005079, allocations: 51.88 kB / 271 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.005268, allocations: 131.7 kB / 271.1 MB, free: 3.359 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.605e-05/0.005354, allocations: 16.2 kB / 271.1 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005793/0.005934, allocations: 0.542 MB / 271.7 MB, free: 2.797 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.00606, allocations: 67.81 kB / 271.7 MB, free: 2.73 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.277e-05/0.006093, allocations: 8 kB / 271.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.213e-05/0.006115, allocations: 8 kB / 271.8 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.53e-05/0.006191, allocations: 71.66 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.434e-05/0.006265, allocations: 55.78 kB / 271.9 MB, free: 2.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.006539, allocations: 286.9 kB / 272.2 MB, free: 2.309 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.006541, allocations: 0 / 272.2 MB, free: 2.309 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.006543, allocations: 0 / 272.2 MB, free: 2.309 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.006547, allocations: 0 / 272.2 MB, free: 2.309 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.0005648/0.007112, allocations: 0.6109 MB / 272.8 MB, free: 1.648 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.007154, allocations: 8.922 kB / 272.8 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.652e-05/0.00722, allocations: 36.91 kB / 272.8 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.007434, allocations: 216 kB / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.007456, allocations: 4.375 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.007479, allocations: 12.38 kB / 273 MB, free: 1.352 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.007763, allocations: 225.7 kB / 273.3 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.007772, allocations: 192 / 273.3 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.007789, allocations: 4.375 kB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.007796, allocations: 3.938 kB / 273.3 MB, free: 1.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.007906, allocations: 154.3 kB / 273.4 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003376/0.008244, allocations: 216.2 kB / 273.6 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.008409, allocations: 173.3 kB / 273.8 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.008521, allocations: 155.7 kB / 274 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-06/0.008528, allocations: 0 / 274 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.00877, allocations: 301.4 kB / 274.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.322e-06/0.008771, allocations: 0 / 274.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004156/0.009186, allocations: 0.5176 MB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.171e-05/0.009258, allocations: 170.2 kB / 274.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.009628, allocations: 367.2 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.009651, allocations: 33.64 kB / 275.3 MB, free: 14.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.333e-05/0.009694, allocations: 93.08 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.192e-05/0.009726, allocations: 27.84 kB / 275.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.963e-05/0.009815, allocations: 77.52 kB / 275.5 MB, free: 14.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.998e-05/0.009905, allocations: 322.8 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.01002, allocations: 150.8 kB / 276 MB, free: 14.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.01013, allocations: 160.5 kB / 276.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.01034, allocations: 311.3 kB / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.01034, allocations: 4 kB / 276.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002803/0.01062, allocations: 351.2 kB / 276.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.757e-05/0.0107, allocations: 130.7 kB / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.0107, allocations: 0 / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.01072, allocations: 0 / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.688e-05/0.01073, allocations: 0 / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.01074, allocations: 7.984 kB / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.845e-05/0.01084, allocations: 11.95 kB / 276.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.812e-05/0.0109, allocations: 48 kB / 277 MB, free: 12.89 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.0002969/0.01119, allocations: 349.3 kB / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.01124, allocations: 43.91 kB / 277.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.922e-05/0.01134, allocations: 47.09 kB / 277.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.01134, allocations: 0 / 277.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.01135, allocations: 0 / 277.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.01135, allocations: 7.984 kB / 277.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005285/0.01188, allocations: 0.5899 MB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.01188, allocations: 3.938 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.616e-06/0.01189, allocations: 8.172 kB / 278 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.01189, allocations: 3.938 kB / 278 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.01192, allocations: 11.98 kB / 278 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.01192, allocations: 4 kB / 278 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.01192, allocations: 0 / 278 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.01225, allocations: 493 kB / 278.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002331/0.01249, allocations: 147.4 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.01253, allocations: 8 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.01263, allocations: 8 kB / 278.7 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.0127, allocations: 23.97 kB / 278.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.01275, allocations: 51.94 kB / 278.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001906/0.01294, allocations: 156.5 kB / 278.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01294, allocations: 0 / 278.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002278/0.01317, allocations: 48 kB / 279 MB, free: 10.73 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 0.000136/0.01331, allocations: 100.1 kB / 279.1 MB, free: 10.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003917/0.0137, allocations: 0.5547 MB / 279.6 MB, free: 9.973 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.0137, allocations: 4 kB / 279.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.01393, allocations: 412 kB / 280 MB, free: 9.488 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.01434, allocations: 123.5 kB / 280.1 MB, free: 9.375 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009272/0.01527, allocations: 0.7341 MB / 280.9 MB, free: 8.586 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.475e-05/0.01536, allocations: 95.27 kB / 281 MB, free: 8.473 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.254e-05/0.0154, allocations: 12.7 kB / 281 MB, free: 8.461 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.01573, allocations: 167.2 kB / 281.1 MB, free: 8.297 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01573, allocations: 0 / 281.1 MB, free: 8.297 MB / 266.7 MB Notification: Performance of Templates: time 0.005965/0.02169, allocations: 4.637 MB / 285.8 MB, free: 3.633 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 -s gbode -gbm=radauIIA3 -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.587425532285124]