Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001436/0.001436, allocations: 177.8 kB / 8.36 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 1.952/1.952, 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.001085/0.001085, allocations: 92.05 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.956e-05/1.955e-05, allocations: 4 kB / 314.8 MB, free: 9.141 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3265, allocations: 47.55 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/0.4571, allocations: 80.61 MB / 442.9 MB, free: 5.703 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.4574, allocations: 66.03 kB / 443 MB, free: 5.641 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05906/0.5165, allocations: 16.43 MB / 459.4 MB, free: 5.328 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5165, allocations: 4 kB / 459.4 MB, free: 5.324 MB / 347.1 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.5166, allocations: 4 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.0007822/0.5173, allocations: 0.6157 MB / 460.1 MB, free: 4.637 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.5174, allocations: 12.03 kB / 460.1 MB, free: 4.625 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.318e-05/0.5175, allocations: 31.62 kB / 460.1 MB, free: 4.594 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.5179, allocations: 251.7 kB / 460.3 MB, free: 4.305 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.518, allocations: 12 kB / 460.4 MB, free: 4.293 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.518, allocations: 4 kB / 460.4 MB, free: 4.289 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001901/0.5182, allocations: 51.98 kB / 460.4 MB, free: 4.238 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.5185, allocations: 129.5 kB / 460.5 MB, free: 4.105 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.5186, allocations: 0 / 460.5 MB, free: 4.105 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.5186, allocations: 4 kB / 460.5 MB, free: 4.102 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.5186, allocations: 0 / 460.5 MB, free: 4.102 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008694/0.5195, allocations: 437 kB / 461 MB, free: 3.637 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002245/0.5197, allocations: 98.55 kB / 461.1 MB, free: 3.531 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001851/0.5199, allocations: 76.95 kB / 461.1 MB, free: 3.453 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.52, allocations: 3.938 kB / 461.1 MB, free: 3.449 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003625/0.5203, allocations: 198.7 kB / 461.3 MB, free: 3.23 MB / 347.1 MB Notification: Performance of pre-optimization done (n=13): time 2.134e-06/0.5203, allocations: 0 / 461.3 MB, free: 3.23 MB / 347.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007944/0.5212, allocations: 274.4 kB / 461.6 MB, free: 2.957 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.5213, allocations: 166.2 kB / 461.8 MB, free: 2.758 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008488/0.5221, allocations: 448.9 kB / 462.2 MB, free: 2.312 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.5222, allocations: 29.7 kB / 462.2 MB, free: 2.277 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.5223, allocations: 167.8 kB / 462.4 MB, free: 2.113 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.29e-05/0.5224, allocations: 19.72 kB / 462.4 MB, free: 2.094 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.56e-05/0.5224, allocations: 4 kB / 462.4 MB, free: 2.09 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.5226, allocations: 326.8 kB / 462.7 MB, free: 1.762 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.5227, allocations: 47.98 kB / 462.8 MB, free: 1.715 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.5229, allocations: 55.98 kB / 462.8 MB, free: 1.66 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.523, allocations: 40.83 kB / 462.9 MB, free: 1.621 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.523, allocations: 0 / 462.9 MB, free: 1.621 MB / 347.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006506/0.5237, allocations: 243.1 kB / 463.1 MB, free: 1.379 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.5238, allocations: 130.7 kB / 463.2 MB, free: 1.227 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.5239, allocations: 0 / 463.2 MB, free: 1.227 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.5239, allocations: 0 / 463.2 MB, free: 1.227 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.068e-05/0.5239, allocations: 7.984 kB / 463.3 MB, free: 1.219 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.5239, allocations: 160 / 463.3 MB, free: 1.219 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.5242, allocations: 8 kB / 463.3 MB, free: 1.211 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.5243, allocations: 59.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,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.0002529/0.5245, allocations: 253.9 kB / 463.6 MB, free: 0.8711 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.736e-05/0.5246, allocations: 39.53 kB / 463.6 MB, free: 0.832 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001905/0.5248, allocations: 67.25 kB / 463.7 MB, free: 0.7656 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5249, allocations: 1.781 kB / 463.7 MB, free: 0.7656 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.5249, allocations: 4 kB / 463.7 MB, free: 0.7617 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.5249, allocations: 0 / 463.7 MB, free: 0.7617 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.5261, allocations: 0.6316 MB / 464.3 MB, free: 88 kB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.5262, allocations: 8.125 kB / 464.3 MB, free: 80 kB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.759e-05/0.5262, allocations: 3.984 kB / 464.3 MB, free: 76 kB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.5262, allocations: 7.938 kB / 464.3 MB, free: 68 kB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.5262, allocations: 8 kB / 464.3 MB, free: 60 kB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.5263, allocations: 0 / 464.3 MB, free: 60 kB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5263, allocations: 4 kB / 464.3 MB, free: 56 kB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008138/0.5271, allocations: 394.9 kB / 464.7 MB, free: 15.65 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005281/0.5276, allocations: 248.5 kB / 465 MB, free: 15.39 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.568e-05/0.5277, allocations: 16 kB / 465 MB, free: 15.38 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.528, allocations: 11.98 kB / 465 MB, free: 15.36 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.5282, allocations: 27.97 kB / 465 MB, free: 15.34 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.5283, allocations: 59.92 kB / 465.1 MB, free: 15.28 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0006914/0.529, allocations: 370.6 kB / 465.4 MB, free: 14.92 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.529, allocations: 0 / 465.4 MB, free: 14.92 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0004218/0.5294, 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,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.000192/0.5297, allocations: 125 kB / 465.6 MB, free: 14.75 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0006665/0.5303, allocations: 417.6 kB / 466 MB, free: 14.29 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5304, allocations: 0 / 466 MB, free: 14.29 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004352/0.5308, allocations: 365.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.00079/0.5316, allocations: 94.98 kB / 466.5 MB, free: 13.79 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.5331, allocations: 0.5594 MB / 467 MB, free: 13.2 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.5338, allocations: 0.8179 MB / 467.8 MB, free: 12.36 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.991e-05/0.5338, allocations: 11.44 kB / 467.9 MB, free: 12.34 MB / 363.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5338, allocations: 0 / 467.9 MB, free: 12.34 MB / 363.1 MB Notification: Performance of Templates: time 0.006676/0.5405, allocations: 2.609 MB / 470.5 MB, free: 9.703 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches