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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001403/0.001403, allocations: 183.3 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 224.2 MB, free: 9.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007453/0.0007453, allocations: 85.36 kB / 272.5 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.000301, allocations: 8 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2287, allocations: 47.58 MB / 377 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09466/0.3234, allocations: 81.4 MB / 458.4 MB, free: 15.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.3237, allocations: 75.95 kB / 458.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03453/0.3582, allocations: 16.42 MB / 474.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3583, allocations: 0 / 474.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.3583, allocations: 4 kB / 474.9 MB, free: 14.71 MB / 362.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.000722/0.359, allocations: 0.6645 MB / 475.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3591, allocations: 8.031 kB / 475.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.671e-05/0.3592, allocations: 36.56 kB / 475.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.3595, allocations: 278.3 kB / 475.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.3595, allocations: 8.375 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.3596, allocations: 12.31 kB / 475.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.3599, allocations: 126.2 kB / 476 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3599, allocations: 192 / 476 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.3599, allocations: 7.938 kB / 476.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3599, allocations: 4 kB / 476.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.3601, allocations: 59.91 kB / 476.1 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006647/0.3607, allocations: 460.5 kB / 476.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.3609, allocations: 94.55 kB / 476.7 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.3611, allocations: 84.89 kB / 476.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.3611, allocations: 7.938 kB / 476.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.3614, allocations: 206.7 kB / 476.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.344e-06/0.3614, allocations: 0 / 476.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008139/0.3623, allocations: 480 kB / 477.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.084e-05/0.3624, allocations: 166.2 kB / 477.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/0.363, allocations: 0.5207 MB / 478.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.3631, allocations: 37.7 kB / 478.1 MB, free: 11.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.057e-05/0.3631, allocations: 93.14 kB / 478.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.3632, allocations: 23.7 kB / 478.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.439e-05/0.3632, allocations: 4 kB / 478.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3633, allocations: 326.8 kB / 478.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.3635, allocations: 59.97 kB / 478.6 MB, free: 10.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.3636, allocations: 69.69 kB / 478.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003322/0.3639, allocations: 347.2 kB / 479 MB, free: 10.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3639, allocations: 0 / 479 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005348/0.3645, allocations: 396.4 kB / 479.4 MB, free: 9.809 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.13e-05/0.3646, allocations: 126.4 kB / 479.5 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3646, allocations: 3.938 kB / 479.6 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.3646, allocations: 4 kB / 479.6 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.047e-05/0.3646, allocations: 0 / 479.6 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3647, allocations: 0 / 479.6 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.3648, allocations: 20.12 kB / 479.6 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.759e-05/0.3649, allocations: 59.88 kB / 479.6 MB, free: 9.578 MB / 362.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,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.3653, allocations: 366.9 kB / 480 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.3653, allocations: 35.53 kB / 480 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.3654, allocations: 71.14 kB / 480.1 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3654, allocations: 0 / 480.1 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3655, allocations: 0 / 480.1 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3655, allocations: 0 / 480.1 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.3665, allocations: 0.829 MB / 480.9 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.3665, allocations: 0 / 480.9 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-06/0.3665, allocations: 7.984 kB / 480.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3665, allocations: 0 / 480.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/0.3666, allocations: 12 kB / 480.9 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.3666, allocations: 4 kB / 480.9 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3666, allocations: 3.984 kB / 481 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000612/0.3672, allocations: 0.5252 MB / 481.5 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002961/0.3675, allocations: 252.4 kB / 481.7 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.573e-05/0.3676, allocations: 15.98 kB / 481.7 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3677, allocations: 8 kB / 481.7 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.3678, allocations: 27.97 kB / 481.8 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.366e-05/0.3679, allocations: 63.86 kB / 481.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004272/0.3684, allocations: 386.9 kB / 482.2 MB, free: 6.824 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3684, allocations: 0 / 482.2 MB, free: 6.824 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002775/0.3686, allocations: 40 kB / 482.3 MB, free: 6.785 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001291/0.3688, allocations: 119.1 kB / 482.4 MB, free: 6.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004815/0.3693, allocations: 445.5 kB / 482.8 MB, free: 6.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3693, allocations: 0 / 482.8 MB, free: 6.176 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.3696, allocations: 373.6 kB / 483.2 MB, free: 5.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005756/0.3702, allocations: 110.1 kB / 483.3 MB, free: 5.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.3712, allocations: 0.7323 MB / 484 MB, free: 4.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.3716, allocations: 0.8062 MB / 484.8 MB, free: 4.062 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.902e-05/0.3717, allocations: 8.656 kB / 484.8 MB, free: 4.051 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.002e-05/0.3717, allocations: 15.38 kB / 484.8 MB, free: 4.035 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3717, allocations: 0 / 484.8 MB, free: 4.035 MB / 362.7 MB Notification: Performance of Templates: time 0.007232/0.3789, allocations: 4.092 MB / 488.9 MB, free: 15.84 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches