Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.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.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER") translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002308/0.002307, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.09/2.09, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 91.5 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.277e-05/2.288e-05, allocations: 4 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3445, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.475, allocations: 80.61 MB / 442.9 MB, free: 5.703 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4753, allocations: 63.97 kB / 443 MB, free: 5.641 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05935/0.5346, allocations: 16.43 MB / 459.4 MB, free: 5.328 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5347, allocations: 0 / 459.4 MB, free: 5.328 MB / 347.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.5347, allocations: 8 kB / 459.4 MB, free: 5.32 MB / 347.1 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.0007941/0.5355, allocations: 0.6157 MB / 460.1 MB, free: 4.637 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.5356, allocations: 12.03 kB / 460.1 MB, free: 4.625 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.5357, allocations: 31.62 kB / 460.1 MB, free: 4.594 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.5362, allocations: 255.7 kB / 460.3 MB, free: 4.301 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.5362, allocations: 8 kB / 460.4 MB, free: 4.293 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.37e-05/0.5363, allocations: 4 kB / 460.4 MB, free: 4.289 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002052/0.5365, allocations: 55.98 kB / 460.4 MB, free: 4.234 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.5368, allocations: 121.5 kB / 460.5 MB, free: 4.109 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.5368, allocations: 4 kB / 460.5 MB, free: 4.105 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.5369, allocations: 4 kB / 460.5 MB, free: 4.102 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.5369, allocations: 0 / 460.5 MB, free: 4.102 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.5379, allocations: 441 kB / 461 MB, free: 3.633 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.5382, allocations: 86.56 kB / 461.1 MB, free: 3.539 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.5384, allocations: 80.84 kB / 461.1 MB, free: 3.457 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.5384, allocations: 0 / 461.1 MB, free: 3.457 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003901/0.5388, allocations: 198.8 kB / 461.3 MB, free: 3.238 MB / 347.1 MB Notification: Performance of pre-optimization done (n=13): time 2.234e-06/0.5388, allocations: 3.938 kB / 461.3 MB, free: 3.234 MB / 347.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008286/0.5397, allocations: 278.4 kB / 461.6 MB, free: 2.957 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.5398, allocations: 162.2 kB / 461.8 MB, free: 2.762 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000916/0.5407, allocations: 448.9 kB / 462.2 MB, free: 2.316 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.778e-05/0.5408, allocations: 29.7 kB / 462.2 MB, free: 2.281 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.5409, allocations: 167.8 kB / 462.4 MB, free: 2.117 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.236e-05/0.541, allocations: 23.7 kB / 462.4 MB, free: 2.094 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.5411, allocations: 8 kB / 462.4 MB, free: 2.086 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5412, allocations: 318.8 kB / 462.7 MB, free: 1.766 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.5414, allocations: 51.98 kB / 462.8 MB, free: 1.715 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.5416, allocations: 52.83 kB / 462.8 MB, free: 1.664 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.5417, allocations: 44.67 kB / 462.9 MB, free: 1.621 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5418, allocations: 4 kB / 462.9 MB, free: 1.617 MB / 347.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006826/0.5425, allocations: 246.2 kB / 463.1 MB, free: 1.375 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.5426, allocations: 126.8 kB / 463.2 MB, free: 1.227 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.5426, allocations: 80 / 463.2 MB, free: 1.227 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.5426, allocations: 0 / 463.2 MB, free: 1.227 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.701e-05/0.5427, allocations: 4 kB / 463.3 MB, free: 1.223 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.5427, allocations: 3.984 kB / 463.3 MB, free: 1.219 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/0.543, allocations: 11.98 kB / 463.3 MB, free: 1.207 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.5431, allocations: 55.94 kB / 463.3 MB, free: 1.152 MB / 347.1 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,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0002741/0.5434, allocations: 257.9 kB / 463.6 MB, free: 0.8672 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-05/0.5435, allocations: 43.52 kB / 463.6 MB, free: 0.8242 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002217/0.5437, allocations: 63.28 kB / 463.7 MB, free: 0.7617 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.5437, allocations: 1.781 kB / 463.7 MB, free: 0.7617 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.5438, allocations: 4 kB / 463.7 MB, free: 0.7578 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.5438, allocations: 0 / 463.7 MB, free: 0.7578 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.545, allocations: 0.6315 MB / 464.3 MB, free: 84 kB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5451, allocations: 0 / 464.3 MB, free: 84 kB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.219e-05/0.5451, allocations: 128 / 464.3 MB, free: 84 kB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.5451, allocations: 12 kB / 464.3 MB, free: 72 kB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.888e-05/0.5452, allocations: 15.98 kB / 464.3 MB, free: 56 kB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.5452, allocations: 3.938 kB / 464.3 MB, free: 52 kB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.5452, allocations: 4 kB / 464.3 MB, free: 48 kB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008778/0.5461, allocations: 391 kB / 464.7 MB, free: 15.65 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005844/0.5467, allocations: 248.5 kB / 465 MB, free: 15.39 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.226e-05/0.5468, allocations: 8 kB / 465 MB, free: 15.38 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002633/0.5471, allocations: 15.98 kB / 465 MB, free: 15.36 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.5473, allocations: 31.91 kB / 465 MB, free: 15.33 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.5474, allocations: 55.94 kB / 465.1 MB, free: 15.28 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0007401/0.5481, allocations: 370.7 kB / 465.4 MB, free: 14.92 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5482, allocations: 0 / 465.4 MB, free: 14.92 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0004343/0.5486, allocations: 40 kB / 465.5 MB, free: 14.88 MB / 363.1 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.0002111/0.5488, allocations: 119.7 kB / 465.6 MB, free: 14.75 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0006827/0.5495, allocations: 417.6 kB / 466 MB, free: 14.29 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5495, allocations: 4 kB / 466 MB, free: 14.29 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.55, allocations: 369.6 kB / 466.4 MB, free: 13.88 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007806/0.5508, allocations: 98.91 kB / 466.5 MB, free: 13.78 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.5523, allocations: 0.5595 MB / 467 MB, free: 13.19 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006259/0.5529, allocations: 0.8062 MB / 467.8 MB, free: 12.36 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.373e-05/0.553, allocations: 15.44 kB / 467.9 MB, free: 12.34 MB / 363.1 MB Notification: Performance of SimCode: time 8.82e-07/0.553, allocations: 0 / 467.9 MB, free: 12.34 MB / 363.1 MB Notification: Performance of Templates: time 0.007272/0.5603, allocations: 2.611 MB / 470.5 MB, free: 9.695 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches