Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009162/0.0009163, allocations: 90.59 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.732e-05/2.735e-05, allocations: 0 / 350.5 MB, free: 2.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09477, allocations: 51.48 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3542/0.449, allocations: 83 MB / 485 MB, free: 6.395 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001759/0.4492, allocations: 68.17 kB / 485.1 MB, free: 6.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03035/0.4795, allocations: 16.8 MB / 0.4901 GB, free: 7.543 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4796, allocations: 0 / 0.4901 GB, free: 7.543 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.4796, allocations: 8 kB / 0.4901 GB, free: 7.535 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.0007114/0.4803, allocations: 0.614 MB / 0.4907 GB, free: 6.867 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4804, allocations: 8.031 kB / 0.4907 GB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.4805, allocations: 39.62 kB / 0.4908 GB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.4809, allocations: 257.4 kB / 0.491 GB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.4809, allocations: 4 kB / 0.491 GB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.4809, allocations: 8 kB / 0.491 GB, free: 6.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.4812, allocations: 129.5 kB / 0.4912 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.4812, allocations: 5.969 kB / 0.4912 GB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.4813, allocations: 8 kB / 0.4912 GB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.4813, allocations: 0 / 0.4912 GB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.4814, allocations: 51.98 kB / 0.4912 GB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000745/0.4822, allocations: 470.5 kB / 0.4917 GB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.4823, allocations: 94.56 kB / 0.4918 GB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.4825, allocations: 84.91 kB / 0.4918 GB, free: 5.652 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.4825, allocations: 0 / 0.4918 GB, free: 5.652 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.4828, allocations: 202 kB / 0.492 GB, free: 5.434 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.794e-06/0.4828, allocations: 0 / 0.492 GB, free: 5.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.000621/0.4834, allocations: 400 kB / 0.4924 GB, free: 5.012 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.906e-05/0.4835, allocations: 166.2 kB / 0.4926 GB, free: 4.812 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006803/0.4842, allocations: 470.5 kB / 0.493 GB, free: 4.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.713e-05/0.4843, allocations: 33.69 kB / 0.4931 GB, free: 4.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.197e-05/0.4844, allocations: 97.14 kB / 0.4931 GB, free: 4.203 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.699e-05/0.4844, allocations: 35.55 kB / 0.4932 GB, free: 4.168 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.408e-05/0.4844, allocations: 0 / 0.4932 GB, free: 4.168 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4846, allocations: 322.8 kB / 0.4935 GB, free: 3.844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.4847, allocations: 59.98 kB / 0.4935 GB, free: 3.785 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.4848, allocations: 55.98 kB / 0.4936 GB, free: 3.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.485, allocations: 168.3 kB / 0.4938 GB, free: 3.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.485, allocations: 1.594 kB / 0.4938 GB, free: 3.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005077/0.4855, allocations: 369.1 kB / 0.4941 GB, free: 3.152 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.558e-05/0.4856, allocations: 126.8 kB / 0.4942 GB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4856, allocations: 0 / 0.4942 GB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.4856, allocations: 0 / 0.4942 GB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.822e-05/0.4857, allocations: 0 / 0.4942 GB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.4857, allocations: 112 / 0.4942 GB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.4858, allocations: 27.92 kB / 0.4943 GB, free: 2.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.846e-05/0.4859, allocations: 59.89 kB / 0.4943 GB, free: 2.918 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.000177/0.4861, allocations: 246 kB / 0.4946 GB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.4861, allocations: 39.53 kB / 0.4946 GB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.4863, allocations: 67.42 kB / 0.4947 GB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.4863, allocations: 0 / 0.4947 GB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4863, allocations: 0 / 0.4947 GB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4863, allocations: 3.984 kB / 0.4947 GB, free: 2.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009115/0.4872, allocations: 0.79 MB / 0.4954 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.4872, allocations: 3.984 kB / 0.4954 GB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.902e-06/0.4872, allocations: 8.594 kB / 0.4954 GB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4873, allocations: 0 / 0.4954 GB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.4873, allocations: 16 kB / 0.4955 GB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4873, allocations: 0 / 0.4955 GB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4873, allocations: 0 / 0.4955 GB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006059/0.4879, allocations: 0.5135 MB / 0.496 GB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003541/0.4883, allocations: 252.4 kB / 0.4962 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.4883, allocations: 12.84 kB / 0.4962 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.4885, allocations: 15.98 kB / 0.4962 GB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.4886, allocations: 23.97 kB / 0.4962 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-05/0.4887, allocations: 63.92 kB / 0.4963 GB, free: 0.707 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004642/0.4892, allocations: 380.9 kB / 0.4967 GB, free: 348 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4892, allocations: 0 / 0.4967 GB, free: 348 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002675/0.4894, allocations: 43.95 kB / 0.4967 GB, free: 304 kB / 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.0001613/0.4896, allocations: 123 kB / 0.4968 GB, free: 172 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005364/0.4902, allocations: 437.6 kB / 0.4972 GB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4902, allocations: 1.406 kB / 0.4973 GB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003147/0.4905, allocations: 373.6 kB / 0.4976 GB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.491, allocations: 92.75 kB / 0.4977 GB, free: 15.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009275/0.4919, allocations: 0.531 MB / 0.4982 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.4924, allocations: 0.8065 MB / 0.499 GB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.392e-05/0.4925, allocations: 20.03 kB / 0.499 GB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.925e-05/0.4925, allocations: 7.438 kB / 0.499 GB, free: 13.76 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4926, allocations: 4 kB / 0.499 GB, free: 13.76 MB / 378.7 MB Notification: Performance of Templates: time 0.007957/0.5005, allocations: 4.058 MB / 0.503 GB, free: 9.664 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches