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.0009068/0.0009068, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.5 MB / 230.3 MB, free: 7.543 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008676/0.0008676, allocations: 84.53 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.776e-05/1.785e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/0.08987, allocations: 50.43 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2864/0.3763, allocations: 81.51 MB / 469 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/0.3765, allocations: 67.97 kB / 469 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03215/0.4087, allocations: 16.64 MB / 485.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4087, allocations: 0 / 485.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.4087, allocations: 4 kB / 485.7 MB, free: 12.68 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.0005334/0.4093, allocations: 0.6174 MB / 486.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.4093, allocations: 8.031 kB / 486.3 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.973e-05/0.4094, allocations: 39.62 kB / 486.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.4097, allocations: 259.6 kB / 486.6 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.4097, allocations: 4 kB / 486.6 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.4098, allocations: 12 kB / 486.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001392/0.4099, allocations: 59.88 kB / 486.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.4101, allocations: 113.6 kB / 486.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.4101, allocations: 0 / 486.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.4101, allocations: 7.984 kB / 486.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.4102, allocations: 0 / 486.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.4108, allocations: 441.1 kB / 487.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/0.4109, allocations: 90.45 kB / 487.3 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.411, allocations: 80.91 kB / 487.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.411, allocations: 0 / 487.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.4113, allocations: 194.7 kB / 487.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.4113, allocations: 0 / 487.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004731/0.4118, allocations: 277.1 kB / 487.8 MB, free: 10.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.4119, allocations: 170.2 kB / 488 MB, free: 10.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005013/0.4124, allocations: 444.9 kB / 488.4 MB, free: 9.668 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.4124, allocations: 33.7 kB / 488.5 MB, free: 9.629 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.532e-05/0.4125, allocations: 101.4 kB / 488.6 MB, free: 9.523 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.181e-05/0.4125, allocations: 23.72 kB / 488.6 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.658e-05/0.4126, allocations: 4 kB / 488.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4127, allocations: 322.8 kB / 488.9 MB, free: 9.172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.958e-05/0.4128, allocations: 55.98 kB / 489 MB, free: 9.117 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.001e-05/0.4129, allocations: 51.98 kB / 489 MB, free: 9.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.266e-05/0.413, allocations: 50.22 kB / 489.1 MB, free: 9.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.413, allocations: 0 / 489.1 MB, free: 9.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003709/0.4133, allocations: 253.3 kB / 489.3 MB, free: 8.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/0.4134, allocations: 124.3 kB / 489.4 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.4134, allocations: 4 kB / 489.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.4135, allocations: 0 / 489.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.598e-05/0.4135, allocations: 0 / 489.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.4135, allocations: 0 / 489.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.4136, allocations: 16 kB / 489.5 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-05/0.4137, allocations: 64.03 kB / 489.5 MB, free: 8.539 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,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 () * 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.0001694/0.4139, allocations: 234 kB / 489.8 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.4139, allocations: 43.48 kB / 489.8 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.848e-05/0.414, allocations: 71.42 kB / 489.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.414, allocations: 0 / 489.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.414, allocations: 4.062 kB / 489.9 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.4141, allocations: 3.938 kB / 489.9 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007097/0.4148, allocations: 0.6434 MB / 490.5 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4148, allocations: 0 / 490.5 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-06/0.4148, allocations: 3.953 kB / 490.5 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.4148, allocations: 0 / 490.5 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.4148, allocations: 12 kB / 490.5 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4148, allocations: 0 / 490.5 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.4148, allocations: 0 / 490.5 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004457/0.4153, allocations: 391.1 kB / 490.9 MB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.4156, allocations: 256.4 kB / 491.2 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.4156, allocations: 15.95 kB / 491.2 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.4158, allocations: 8 kB / 491.2 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.44e-05/0.4159, allocations: 27.91 kB / 491.2 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.416, allocations: 63.92 kB / 491.3 MB, free: 6.668 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003817/0.4163, allocations: 374.7 kB / 491.6 MB, free: 6.305 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4164, allocations: 0 / 491.6 MB, free: 6.305 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000274/0.4166, allocations: 40 kB / 491.7 MB, free: 6.266 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) * 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.0001239/0.4168, allocations: 115 kB / 491.8 MB, free: 6.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.4171, allocations: 413.6 kB / 492.2 MB, free: 5.691 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4172, allocations: 4 kB / 492.2 MB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.4174, allocations: 365.5 kB / 492.6 MB, free: 5.281 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.4179, allocations: 100.6 kB / 492.7 MB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008242/0.4187, allocations: 0.5146 MB / 493.2 MB, free: 4.645 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.4191, allocations: 0.814 MB / 494 MB, free: 3.805 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.596e-05/0.4192, allocations: 8.656 kB / 494 MB, free: 3.797 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.764e-05/0.4192, allocations: 11.44 kB / 494 MB, free: 3.785 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4192, allocations: 0 / 494 MB, free: 3.785 MB / 362.7 MB Notification: Performance of Templates: time 0.005905/0.4251, allocations: 3.919 MB / 497.9 MB, free: 15.8 MB / 378.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/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