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.001923/0.001923, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.002326/0.002326, allocations: 149.1 kB / 24.26 MB, free: 156 kB / 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 1.494/1.494, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] 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.144e-06/2.144e-06, allocations: 0 / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.381e-05/3.596e-05, allocations: 5.828 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003932/0.003968, allocations: 1.474 MB / 268.8 MB, free: 5.23 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.006794, allocations: 0.8263 MB / 269.6 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.831e-05/0.006862, allocations: 0 / 269.6 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.006991, allocations: 11.92 kB / 269.6 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.0071, allocations: 11.88 kB / 269.6 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.00747, allocations: 51.81 kB / 269.7 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003299/0.0078, allocations: 131.7 kB / 269.8 MB, free: 4.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.007941, allocations: 24.2 kB / 269.8 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.009046, allocations: 0.5965 MB / 270.4 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.00925, allocations: 67.75 kB / 270.5 MB, free: 3.504 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-05/0.009304, allocations: 12 kB / 270.5 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.759e-05/0.009342, allocations: 8 kB / 270.5 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.009474, allocations: 67.77 kB / 270.6 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.009625, allocations: 59.67 kB / 270.6 MB, free: 3.359 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006425/0.01027, allocations: 366.8 kB / 271 MB, free: 3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.01027, allocations: 0 / 271 MB, free: 3 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.01027, allocations: 0 / 271 MB, free: 3 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.01028, allocations: 4 kB / 271 MB, free: 2.996 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.001155/0.01144, allocations: 0.6552 MB / 271.7 MB, free: 2.285 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.0115, allocations: 12.92 kB / 271.7 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.01166, allocations: 44.7 kB / 271.7 MB, free: 2.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004179/0.01208, allocations: 224 kB / 271.9 MB, free: 1.984 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.0121, allocations: 4.375 kB / 271.9 MB, free: 1.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.01214, allocations: 8.375 kB / 272 MB, free: 1.973 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.01272, allocations: 248.9 kB / 272.2 MB, free: 1.699 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.01273, allocations: 192 / 272.2 MB, free: 1.699 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.01276, allocations: 4.375 kB / 272.2 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.01277, allocations: 3.938 kB / 272.2 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003413/0.01311, allocations: 178.8 kB / 272.4 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009583/0.01407, allocations: 388.3 kB / 272.8 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003849/0.01445, allocations: 189.3 kB / 272.9 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/0.01481, allocations: 183.7 kB / 273.1 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.01483, allocations: 3.938 kB / 273.1 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006743/0.0155, allocations: 329.4 kB / 273.4 MB, free: 288 kB / 250.7 MB Notification: Performance of pre-optimization done (n=13): time 1.773e-06/0.0155, allocations: 0 / 273.4 MB, free: 288 kB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.001553/0.01705, allocations: 0.7128 MB / 274.2 MB, free: 15.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00019/0.01724, allocations: 170.2 kB / 274.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.01831, allocations: 0.5207 MB / 274.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.865e-05/0.0184, allocations: 29.7 kB / 274.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.01852, allocations: 101.1 kB / 275 MB, free: 14.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.502e-05/0.0186, allocations: 39.67 kB / 275 MB, free: 14.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.01878, allocations: 81.55 kB / 275.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.019, allocations: 318.8 kB / 275.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.01932, allocations: 178.8 kB / 275.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004289/0.01975, allocations: 196.5 kB / 275.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005875/0.02034, allocations: 358.8 kB / 276.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.02034, allocations: 0 / 276.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001044/0.02138, allocations: 0.5146 MB / 276.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001657/0.02155, allocations: 130.9 kB / 276.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.02156, allocations: 3.938 kB / 276.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.02159, allocations: 0 / 276.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.092e-05/0.02162, allocations: 0 / 276.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.02163, allocations: 4 kB / 276.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.02181, allocations: 8 kB / 276.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.809e-05/0.0219, allocations: 59.98 kB / 276.8 MB, free: 12.55 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.0005058/0.0224, allocations: 366.6 kB / 277.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.149e-05/0.02249, allocations: 59.72 kB / 277.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.02263, allocations: 63.09 kB / 277.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.02263, allocations: 0 / 277.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.02263, allocations: 0 / 277.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.02264, allocations: 0 / 277.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001419/0.02406, allocations: 0.8705 MB / 278.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.02406, allocations: 0 / 278.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.02406, allocations: 0 / 278.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.02407, allocations: 0 / 278.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.0241, allocations: 16 kB / 278.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.02411, allocations: 3.984 kB / 278.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.02411, allocations: 4 kB / 278.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000924/0.02503, allocations: 0.6687 MB / 278.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004188/0.02545, allocations: 205.3 kB / 279.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.02551, allocations: 12 kB / 279.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.02565, allocations: 8 kB / 279.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.02578, allocations: 27.97 kB / 279.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.66e-05/0.02586, allocations: 59.92 kB / 279.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000588/0.02645, allocations: 390.8 kB / 279.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02645, allocations: 0 / 279.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003266/0.02677, allocations: 40 kB / 279.6 MB, free: 9.59 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.0001795/0.02695, allocations: 115.1 kB / 279.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008079/0.02776, allocations: 0.6124 MB / 280.3 MB, free: 8.758 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.02776, allocations: 0 / 280.3 MB, free: 8.758 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.02823, allocations: 436.3 kB / 280.8 MB, free: 8.258 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009848/0.02922, allocations: 137.4 kB / 280.9 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.0307, allocations: 0.786 MB / 281.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.03102, allocations: 201.8 kB / 281.9 MB, free: 7.078 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.622e-05/0.03109, allocations: 4.734 kB / 281.9 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.416e-05/0.03115, allocations: 12.5 kB / 281.9 MB, free: 7.062 MB / 266.7 MB Notification: Performance of SimCode: time 2.745e-06/0.03116, allocations: 0 / 281.9 MB, free: 7.062 MB / 266.7 MB Notification: Performance of Templates: time 0.0106/0.04176, allocations: 5.013 MB / 286.9 MB, free: 2.031 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.350165546988137]