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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001831/0.001831, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00217/0.00217, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 71.81 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2742, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002883/0.2771, allocations: 1.514 MB / 410.3 MB, free: 20 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.2792, allocations: 0.8795 MB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.046e-05/0.2792, allocations: 0 / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.556e-05/0.2793, allocations: 15.86 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.75e-05/0.2794, allocations: 19.86 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.2797, allocations: 51.88 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.2799, allocations: 139.7 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.28, allocations: 23.72 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000618/0.2806, allocations: 0.5576 MB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.2808, allocations: 75.67 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.2808, allocations: 12 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.714e-05/0.2809, allocations: 12 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.241e-05/0.281, allocations: 63.77 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.2812, allocations: 115.1 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.2817, allocations: 373.4 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2817, allocations: 4 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2817, allocations: 0 / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.2817, allocations: 0 / 412.6 MB, free: 13.69 MB / 334.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.0008811/0.2826, allocations: 0.7267 MB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.2826, allocations: 12.03 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.967e-05/0.2827, allocations: 42.69 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.2828, allocations: 36.7 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.2831, allocations: 278.7 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.2831, allocations: 4.375 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.2831, allocations: 12.38 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.2835, allocations: 129.7 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2835, allocations: 3.938 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.2835, allocations: 7.938 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.2835, allocations: 4 kB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.2837, allocations: 59.91 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006844/0.2844, allocations: 472.5 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.2846, allocations: 98.48 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.2847, allocations: 80.89 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-06/0.2848, allocations: 4 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003811/0.2851, allocations: 210.7 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.2852, allocations: 0 / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008683/0.286, allocations: 480.2 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.2862, allocations: 174.2 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006531/0.2868, allocations: 0.5052 MB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.2869, allocations: 29.7 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.347e-05/0.2869, allocations: 101.1 kB / 416 MB, free: 9.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.633e-05/0.287, allocations: 31.83 kB / 416.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.2871, allocations: 85.56 kB / 416.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.2873, allocations: 322.8 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.2875, allocations: 59.97 kB / 416.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.2876, allocations: 73.67 kB / 416.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.288, allocations: 347.3 kB / 416.9 MB, free: 8.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.288, allocations: 4 kB / 416.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005745/0.2886, allocations: 395.6 kB / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.2887, allocations: 126.8 kB / 417.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2887, allocations: 4 kB / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.2887, allocations: 0 / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.031e-05/0.2888, allocations: 0 / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2888, allocations: 0 / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.2889, allocations: 15.98 kB / 417.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.298e-05/0.289, allocations: 59.94 kB / 417.5 MB, free: 8.336 MB / 334.1 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,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003993/0.2894, allocations: 362.7 kB / 417.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.2895, allocations: 43.77 kB / 417.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.2896, allocations: 67.14 kB / 418 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2896, allocations: 4 kB / 418 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2896, allocations: 112 / 418 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2896, allocations: 3.938 kB / 418 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.2907, allocations: 0.8095 MB / 418.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2907, allocations: 0 / 418.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.075e-06/0.2907, allocations: 7.984 kB / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2907, allocations: 0 / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.2907, allocations: 12 kB / 418.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.2908, allocations: 8 kB / 418.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2908, allocations: 3.938 kB / 418.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006958/0.2915, allocations: 0.537 MB / 419.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.2918, allocations: 256.5 kB / 419.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.277e-05/0.2919, allocations: 12 kB / 419.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.292, allocations: 12.17 kB / 419.6 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.2921, allocations: 27.91 kB / 419.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.728e-05/0.2922, allocations: 67.94 kB / 419.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004793/0.2927, allocations: 382.9 kB / 420.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2927, allocations: 0 / 420.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000285/0.293, allocations: 44 kB / 420.1 MB, free: 5.527 MB / 334.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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/0.2941, allocations: 1.093 MB / 421.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00058/0.2947, allocations: 441.5 kB / 421.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2947, allocations: 0 / 421.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00036/0.2951, allocations: 373.6 kB / 422 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.2957, allocations: 126.8 kB / 422.2 MB, free: 3.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.2993, allocations: 2.75 MB / 424.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.2998, allocations: 0.8061 MB / 425.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.102e-05/0.2999, allocations: 8.656 kB / 425.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.623e-05/0.2999, allocations: 27.42 kB / 425.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2999, allocations: 0 / 425.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.3291, allocations: 6.032 MB / 431.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.243, allocations: 3.984 kB / 431.8 MB, free: 9.602 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches