Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009424/0.0009424, allocations: 195.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007731/0.000773, allocations: 94.92 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001958/0.0001959, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1826, allocations: 51.28 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.00154/0.1841, allocations: 1.21 MB / 409.3 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.186, allocations: 0.8373 MB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.984e-05/0.1861, allocations: 3.938 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.721e-05/0.1862, allocations: 3.984 kB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.58e-05/0.1863, allocations: 16.48 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.1865, allocations: 42.11 kB / 410.2 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.978e-05/0.1866, allocations: 103.7 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.97e-05/0.1867, allocations: 20.16 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003983/0.1871, allocations: 483.8 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.596e-05/0.1872, allocations: 79.77 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.014e-05/0.1873, allocations: 5.031 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.824e-05/0.1873, allocations: 4 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.207e-05/0.1874, allocations: 64.3 kB / 411 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.344e-05/0.1875, allocations: 129 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.1876, allocations: 296.5 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1876, allocations: 0 / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1877, allocations: 4 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1877, allocations: 1.25 kB / 411.4 MB, free: 24.41 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.0004466/0.1881, allocations: 0.6541 MB / 412.1 MB, free: 23.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1882, allocations: 14.84 kB / 412.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.486e-05/0.1882, allocations: 34.75 kB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.409e-05/0.1883, allocations: 36.56 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.1885, allocations: 274.3 kB / 412.4 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1885, allocations: 12.38 kB / 412.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.1885, allocations: 4.375 kB / 412.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.1888, allocations: 133.5 kB / 412.6 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.1888, allocations: 2.125 kB / 412.6 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.1888, allocations: 8 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.1889, allocations: 4 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.189, allocations: 59.95 kB / 412.6 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005259/0.1895, allocations: 463.7 kB / 413.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.1897, allocations: 94.55 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.1898, allocations: 88.92 kB / 413.3 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.1898, allocations: 8 kB / 413.3 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.1901, allocations: 206.6 kB / 413.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.944e-06/0.1901, allocations: 4 kB / 413.5 MB, free: 22.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.000622/0.1907, allocations: 476 kB / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.1908, allocations: 170.2 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004684/0.1913, allocations: 0.5129 MB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.1913, allocations: 29.7 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.686e-05/0.1913, allocations: 109 kB / 414.7 MB, free: 20.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.1914, allocations: 31.69 kB / 414.8 MB, free: 20.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.521e-05/0.1914, allocations: 4 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.092e-05/0.1914, allocations: 330.7 kB / 415.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.1915, allocations: 55.97 kB / 415.2 MB, free: 20.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.1917, allocations: 70.53 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.1919, allocations: 347.2 kB / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1919, allocations: 4 kB / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004092/0.1923, allocations: 380.3 kB / 415.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.663e-05/0.1924, allocations: 122.8 kB / 416.1 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1924, allocations: 0 / 416.1 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.1924, allocations: 0 / 416.1 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.801e-05/0.1924, allocations: 7.938 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.1924, allocations: 0 / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.1926, allocations: 19.92 kB / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.151e-05/0.1926, allocations: 59.94 kB / 416.1 MB, free: 19.24 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.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,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: 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.000226/0.1929, allocations: 362.8 kB / 416.5 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.1929, allocations: 39.53 kB / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.944e-05/0.193, allocations: 67.14 kB / 416.6 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.193, allocations: 3.984 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.193, allocations: 4 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.193, allocations: 0 / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006939/0.1937, allocations: 0.8243 MB / 417.4 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1937, allocations: 0 / 417.4 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-06/0.1937, allocations: 4.188 kB / 417.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.1938, allocations: 0 / 417.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.1938, allocations: 23.98 kB / 417.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-06/0.1938, allocations: 0 / 417.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1938, allocations: 7.875 kB / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004597/0.1943, allocations: 0.5291 MB / 418 MB, free: 17.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/0.1945, allocations: 244.5 kB / 418.2 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.1945, allocations: 12 kB / 418.3 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1947, allocations: 16 kB / 418.3 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.042e-05/0.1948, allocations: 27.91 kB / 418.3 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.67e-05/0.1948, allocations: 59.98 kB / 418.4 MB, free: 16.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003316/0.1952, allocations: 382.9 kB / 418.7 MB, free: 16.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1952, allocations: 7.938 kB / 418.7 MB, free: 16.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002566/0.1954, allocations: 40 kB / 418.8 MB, free: 16.43 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,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) * 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.0006329/0.1961, allocations: 1.084 MB / 419.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003564/0.1964, allocations: 441.5 kB / 420.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1965, allocations: 0 / 420.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.1967, allocations: 377.6 kB / 420.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000528/0.1972, allocations: 106 kB / 420.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.1991, allocations: 1.603 MB / 422.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/0.1993, allocations: 0.7986 MB / 423.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.1993, allocations: 23.42 kB / 423.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.1993, allocations: 4 kB / 423.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.919/3.118, allocations: 2.26 MB / 425.5 MB, free: 9.531 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches