Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001306, allocations: 112.5 kB / 17.06 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 195.9 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2775, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002851/0.2804, allocations: 1.496 MB / 401.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001968/0.2824, allocations: 0.8481 MB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.2824, allocations: 0 / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.493e-05/0.2825, allocations: 11.86 kB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.66e-05/0.2826, allocations: 11.88 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.2829, allocations: 55.88 kB / 402.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.2831, allocations: 143.7 kB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.2833, allocations: 31.72 kB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000645/0.2839, allocations: 0.5693 MB / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.2841, allocations: 67.75 kB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.2841, allocations: 15.94 kB / 403.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.58e-05/0.2842, allocations: 12 kB / 403.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.745e-05/0.2843, allocations: 67.7 kB / 403.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.2844, allocations: 115.2 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.2848, allocations: 373.4 kB / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2848, allocations: 0 / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2848, allocations: 0 / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.2849, allocations: 0 / 404 MB, free: 4.996 MB / 318.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.0007829/0.2856, allocations: 0.7373 MB / 404.8 MB, free: 4.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.2857, allocations: 11.97 kB / 404.8 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.2857, allocations: 42.75 kB / 404.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.389e-05/0.2858, allocations: 40.7 kB / 404.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.2861, allocations: 270.7 kB / 405.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2861, allocations: 8.375 kB / 405.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.2862, allocations: 8.375 kB / 405.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.2865, allocations: 129.7 kB / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2865, allocations: 0 / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.2865, allocations: 4 kB / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2865, allocations: 0 / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.2867, allocations: 63.91 kB / 405.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007115/0.2874, allocations: 472.5 kB / 405.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.2876, allocations: 98.42 kB / 405.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.2878, allocations: 88.88 kB / 406 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.2878, allocations: 0 / 406 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003709/0.2882, allocations: 206.7 kB / 406.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.423e-06/0.2882, allocations: 0 / 406.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008287/0.289, allocations: 488.2 kB / 406.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.2892, allocations: 162.2 kB / 406.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00065/0.2898, allocations: 0.5129 MB / 407.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.2899, allocations: 33.7 kB / 407.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.2899, allocations: 97.12 kB / 407.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.205e-05/0.29, allocations: 31.8 kB / 407.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.2901, allocations: 77.56 kB / 407.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2903, allocations: 334.8 kB / 407.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.2904, allocations: 55.97 kB / 408 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.2905, allocations: 73.69 kB / 408 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003605/0.2909, allocations: 349.5 kB / 408.4 MB, free: 296 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2909, allocations: 0 / 408.4 MB, free: 296 kB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005959/0.2915, allocations: 384.3 kB / 408.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.2916, allocations: 130.8 kB / 408.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.2917, allocations: 3.984 kB / 408.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.2917, allocations: 4 kB / 408.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.719e-05/0.2917, allocations: 3.938 kB / 408.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.2917, allocations: 0 / 408.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.2918, allocations: 8 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/0.2919, allocations: 55.98 kB / 408.9 MB, free: 15.66 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.0003663/0.2923, allocations: 374.8 kB / 409.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.487e-05/0.2923, allocations: 39.77 kB / 409.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.882e-05/0.2925, allocations: 67.16 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.2925, allocations: 0 / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2925, allocations: 0 / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2925, allocations: 0 / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.2935, allocations: 0.8251 MB / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2935, allocations: 0 / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.857e-06/0.2935, allocations: 0 / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2935, allocations: 0 / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.2936, allocations: 16.09 kB / 410.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2936, allocations: 3.938 kB / 410.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2936, allocations: 7.938 kB / 410.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006868/0.2943, allocations: 0.5388 MB / 410.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003086/0.2946, allocations: 248.6 kB / 411 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.986e-05/0.2947, allocations: 8 kB / 411.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.2948, allocations: 11.98 kB / 411.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.2949, allocations: 27.92 kB / 411.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-05/0.295, allocations: 59.92 kB / 411.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004755/0.2955, allocations: 390.9 kB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2955, allocations: 0 / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002721/0.2957, allocations: 44 kB / 411.6 MB, free: 12.85 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.001202/0.2969, allocations: 1.098 MB / 412.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005832/0.2975, allocations: 441.5 kB / 413.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2976, allocations: 0 / 413.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.2979, allocations: 377.6 kB / 413.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.2986, allocations: 120.8 kB / 413.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.3022, allocations: 2.756 MB / 416.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.3027, allocations: 0.8136 MB / 417.2 MB, free: 6.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.503e-05/0.3028, allocations: 12.64 kB / 417.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.3029, allocations: 23.44 kB / 417.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3029, allocations: 3.938 kB / 417.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02913/0.332, allocations: 6.03 MB / 423.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.252, allocations: 3.453 kB / 423.2 MB, free: 0.9297 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches