Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_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_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 191 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007895/0.0007895, allocations: 99.34 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002386/0.0002387, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1885, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001117/0.1896, allocations: 1.205 MB / 409.3 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.1909, allocations: 0.831 MB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.014e-05/0.1909, allocations: 3.938 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.14e-05/0.191, allocations: 8.734 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.278e-05/0.1911, allocations: 17.14 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.1913, allocations: 35.97 kB / 410.1 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.691e-05/0.1914, allocations: 107.7 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.315e-05/0.1915, allocations: 21.88 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00038/0.1919, allocations: 487.2 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.98e-05/0.192, allocations: 80.89 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.192, allocations: 7.938 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.652e-05/0.192, allocations: 0 / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.769e-05/0.1921, allocations: 68.39 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.793e-05/0.1922, allocations: 129 kB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.1924, allocations: 296 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1924, allocations: 0 / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1924, allocations: 1.688 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.1924, allocations: 0 / 411.3 MB, free: 24.4 MB / 298.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.000415/0.1928, allocations: 0.6577 MB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.1929, allocations: 8.781 kB / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.359e-05/0.1929, allocations: 40.56 kB / 412 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.1931, allocations: 274.8 kB / 412.3 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.1932, allocations: 9.594 kB / 412.3 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.1932, allocations: 8.375 kB / 412.3 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.1934, allocations: 129.9 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1935, allocations: 1.406 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.1935, allocations: 4 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1935, allocations: 0 / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.1936, allocations: 55.97 kB / 412.5 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004643/0.1941, allocations: 471.9 kB / 413 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.1943, allocations: 98.55 kB / 413.1 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.1944, allocations: 81 kB / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.1944, allocations: 7.938 kB / 413.1 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.1947, allocations: 206.6 kB / 413.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.1947, allocations: 0 / 413.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006219/0.1953, allocations: 479.9 kB / 413.8 MB, free: 21.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.1953, allocations: 166.2 kB / 414 MB, free: 21.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004554/0.1958, allocations: 0.509 MB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.1958, allocations: 29.7 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.1959, allocations: 113 kB / 414.6 MB, free: 20.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.1959, allocations: 19.72 kB / 414.6 MB, free: 20.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.706e-05/0.1959, allocations: 4 kB / 414.6 MB, free: 20.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.995e-05/0.196, allocations: 326.8 kB / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1961, allocations: 59.97 kB / 415 MB, free: 20.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.1962, allocations: 69.67 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.1965, allocations: 356.6 kB / 415.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1965, allocations: 0 / 415.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004144/0.1969, allocations: 380.3 kB / 415.8 MB, free: 19.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/0.197, allocations: 126.8 kB / 415.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.197, allocations: 4 kB / 415.9 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.197, allocations: 0 / 415.9 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.638e-05/0.197, allocations: 0 / 415.9 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.197, allocations: 7.875 kB / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.1972, allocations: 19.92 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.1972, allocations: 59.97 kB / 416 MB, free: 19.29 MB / 298.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.0002248/0.1975, allocations: 374.8 kB / 416.4 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.1975, allocations: 39.53 kB / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.928e-05/0.1976, allocations: 63.16 kB / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1976, allocations: 0 / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1976, allocations: 0 / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1976, allocations: 0 / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000705/0.1983, allocations: 0.8206 MB / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1983, allocations: 8 kB / 417.3 MB, free: 17.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.668e-06/0.1983, allocations: 3.984 kB / 417.3 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1984, allocations: 0 / 417.3 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.1984, allocations: 16 kB / 417.3 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1984, allocations: 0 / 417.3 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1984, allocations: 3.938 kB / 417.3 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004818/0.1989, allocations: 0.5368 MB / 417.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.1991, allocations: 240.5 kB / 418.1 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.028e-05/0.1992, allocations: 16 kB / 418.1 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.1993, allocations: 11.98 kB / 418.1 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.1994, allocations: 31.91 kB / 418.2 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.1995, allocations: 52 kB / 418.2 MB, free: 16.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003446/0.1998, allocations: 390.8 kB / 418.6 MB, free: 16.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1998, allocations: 0 / 418.6 MB, free: 16.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002591/0.2001, allocations: 40 kB / 418.6 MB, free: 16.48 MB / 298.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.0001191/0.2002, allocations: 123.1 kB / 418.8 MB, free: 16.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003776/0.2006, allocations: 441.5 kB / 419.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2006, allocations: 0 / 419.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00021/0.2008, allocations: 377.5 kB / 419.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000502/0.2014, allocations: 107.8 kB / 419.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008467/0.2022, allocations: 0.7795 MB / 420.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.2025, allocations: 0.7946 MB / 421.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.663e-05/0.2025, allocations: 15.44 kB / 421.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2025, allocations: 0 / 421.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Templates: time 0.00321/0.2057, allocations: 2.656 MB / 423.9 MB, free: 11 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches