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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.761/1.761, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 98.72 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008519/0.0008521, allocations: 39.95 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3052, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002522/0.3078, allocations: 1.552 MB / 401 MB, free: 31.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.3095, allocations: 0.8733 MB / 401.9 MB, free: 30.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.661e-05/0.3096, allocations: 6.25 kB / 401.9 MB, free: 30.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.3097, allocations: 7.922 kB / 401.9 MB, free: 30.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.845e-05/0.3098, allocations: 11.88 kB / 401.9 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.3101, allocations: 43.95 kB / 402 MB, free: 30.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.3102, allocations: 115.7 kB / 402.1 MB, free: 30.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.3104, allocations: 24.2 kB / 402.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004699/0.3109, allocations: 0.5576 MB / 402.7 MB, free: 30.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.311, allocations: 59.77 kB / 402.7 MB, free: 30.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.247e-05/0.311, allocations: 4 kB / 402.7 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.062e-05/0.3111, allocations: 4 kB / 402.7 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.758e-05/0.3112, allocations: 75.67 kB / 402.8 MB, free: 30.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.909e-05/0.3113, allocations: 107.2 kB / 402.9 MB, free: 29.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.3115, allocations: 366.6 kB / 403.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3115, allocations: 4 kB / 403.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3115, allocations: 0 / 403.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.3116, allocations: 0 / 403.3 MB, free: 29.58 MB / 298.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.0006396/0.3122, allocations: 0.7204 MB / 404 MB, free: 28.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.3122, allocations: 12.03 kB / 404 MB, free: 28.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.374e-05/0.3123, allocations: 36.5 kB / 404 MB, free: 28.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.3126, allocations: 270.3 kB / 404.3 MB, free: 28.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.3126, allocations: 8.359 kB / 404.3 MB, free: 28.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.944e-05/0.3126, allocations: 8.375 kB / 404.3 MB, free: 28.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.3129, allocations: 134.8 kB / 404.4 MB, free: 28.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3129, allocations: 0 / 404.4 MB, free: 28.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.313, allocations: 8 kB / 404.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.313, allocations: 4 kB / 404.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.3131, allocations: 59.91 kB / 404.5 MB, free: 28.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005575/0.3137, allocations: 460.5 kB / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.3138, allocations: 94.55 kB / 405.1 MB, free: 27.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.314, allocations: 88.83 kB / 405.1 MB, free: 27.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.314, allocations: 4 kB / 405.1 MB, free: 27.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/0.3143, allocations: 206.7 kB / 405.4 MB, free: 27.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.3143, allocations: 0 / 405.4 MB, free: 27.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006719/0.315, allocations: 475.2 kB / 405.8 MB, free: 26.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.315, allocations: 178.1 kB / 406 MB, free: 26.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004683/0.3155, allocations: 0.5092 MB / 406.5 MB, free: 26.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.3155, allocations: 33.64 kB / 406.5 MB, free: 26.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.786e-05/0.3156, allocations: 101 kB / 406.6 MB, free: 25.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.3156, allocations: 23.72 kB / 406.7 MB, free: 25.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.343e-05/0.3157, allocations: 89.41 kB / 406.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.3158, allocations: 326.8 kB / 407.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.3159, allocations: 55.91 kB / 407.1 MB, free: 25.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.316, allocations: 78.25 kB / 407.2 MB, free: 25.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.3163, allocations: 351.2 kB / 407.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3163, allocations: 0 / 407.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004246/0.3167, allocations: 384.3 kB / 407.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.106e-05/0.3168, allocations: 122.7 kB / 408 MB, free: 24.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3168, allocations: 4 kB / 408 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.3168, allocations: 0 / 408 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.604e-05/0.3169, allocations: 8.016 kB / 408 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3169, allocations: 0 / 408 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.317, allocations: 19.84 kB / 408.1 MB, free: 24.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/0.3171, allocations: 55.94 kB / 408.1 MB, free: 24.31 MB / 298.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.0002536/0.3173, allocations: 370.7 kB / 408.5 MB, free: 23.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.3174, allocations: 39.61 kB / 408.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.178e-05/0.3175, allocations: 63.16 kB / 408.6 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3175, allocations: 4 kB / 408.6 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3175, allocations: 4 kB / 408.6 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3175, allocations: 0 / 408.6 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007416/0.3183, allocations: 0.8242 MB / 409.4 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.3183, allocations: 4 kB / 409.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.468e-06/0.3183, allocations: 0 / 409.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.3183, allocations: 0 / 409.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.3183, allocations: 16.17 kB / 409.4 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3183, allocations: 4 kB / 409.4 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3183, allocations: 3.938 kB / 409.4 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008061/0.3192, allocations: 1.202 MB / 410.6 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.3194, allocations: 244.4 kB / 410.9 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.3195, allocations: 15.98 kB / 410.9 MB, free: 21.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.3196, allocations: 8 kB / 410.9 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3197, allocations: 27.95 kB / 410.9 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-05/0.3198, allocations: 56 kB / 411 MB, free: 21.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003766/0.3202, allocations: 398.8 kB / 411.4 MB, free: 20.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3202, allocations: 0 / 411.4 MB, free: 20.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003604/0.3205, allocations: 43.91 kB / 411.4 MB, free: 20.79 MB / 298.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.0001721/0.3207, allocations: 111 kB / 411.5 MB, free: 20.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004499/0.3212, allocations: 441.5 kB / 412 MB, free: 20.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3212, allocations: 0 / 412 MB, free: 20.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.3214, allocations: 377.6 kB / 412.3 MB, free: 19.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005702/0.322, allocations: 111.7 kB / 412.4 MB, free: 19.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.3231, allocations: 0.9003 MB / 413.3 MB, free: 18.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.3233, allocations: 0.8024 MB / 414.1 MB, free: 17.9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.514e-05/0.3234, allocations: 8.656 kB / 414.1 MB, free: 17.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.743e-05/0.3234, allocations: 7.438 kB / 414.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3234, allocations: 0 / 414.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of Templates: time 0.006024/0.3295, allocations: 4.525 MB / 418.7 MB, free: 13.3 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches