Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",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.001451/0.001451, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001696/0.001697, allocations: 191 kB / 18 MB, free: 5.098 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.313/1.313, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 43.94 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2646, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002567/0.2672, allocations: 1.502 MB / 401.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.269, allocations: 0.8477 MB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.947e-05/0.2691, allocations: 3.938 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.262e-05/0.2692, allocations: 11.92 kB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.201e-05/0.2693, allocations: 11.88 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.2695, allocations: 55.88 kB / 402.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.2697, allocations: 139.7 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.2698, allocations: 31.72 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005528/0.2704, allocations: 0.581 MB / 403.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.2705, allocations: 71.7 kB / 403.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.2706, allocations: 8 kB / 403.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.818e-05/0.2706, allocations: 12 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.155e-05/0.2707, allocations: 71.69 kB / 403.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.2708, allocations: 115.1 kB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.2712, allocations: 377.4 kB / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2712, allocations: 0 / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2712, allocations: 0 / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2712, allocations: 0 / 404.1 MB, free: 4.984 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.0006796/0.2719, allocations: 0.7266 MB / 404.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.2719, allocations: 12.03 kB / 404.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.408e-05/0.272, allocations: 42.75 kB / 404.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.652e-05/0.2721, allocations: 36.7 kB / 404.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.2724, allocations: 278.6 kB / 405.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.2724, allocations: 4.375 kB / 405.1 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/0.2725, allocations: 8.375 kB / 405.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.2728, allocations: 131.7 kB / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.2728, allocations: 0 / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.2728, allocations: 8 kB / 405.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.2728, allocations: 7.984 kB / 405.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.273, allocations: 59.95 kB / 405.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006963/0.2737, allocations: 472.4 kB / 405.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.2739, allocations: 90.55 kB / 405.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.2741, allocations: 92.92 kB / 406 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-06/0.2741, allocations: 4 kB / 406 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003787/0.2745, allocations: 210.6 kB / 406.2 MB, free: 2.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.2745, allocations: 0 / 406.2 MB, free: 2.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008349/0.2753, allocations: 476.3 kB / 406.7 MB, free: 2.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.2754, allocations: 170.2 kB / 406.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.2761, allocations: 0.5129 MB / 407.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.2761, allocations: 29.7 kB / 407.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.975e-05/0.2762, allocations: 101.1 kB / 407.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.2762, allocations: 27.81 kB / 407.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.2764, allocations: 89.55 kB / 407.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2765, allocations: 330.8 kB / 407.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2766, allocations: 51.97 kB / 408 MB, free: 0.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.2767, allocations: 73.69 kB / 408 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.2771, allocations: 347 kB / 408.4 MB, free: 288 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2771, allocations: 0 / 408.4 MB, free: 288 kB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005269/0.2776, allocations: 392.4 kB / 408.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.075e-05/0.2777, allocations: 126.8 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.2777, allocations: 0 / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2777, allocations: 0 / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.062e-05/0.2777, allocations: 3.938 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.2778, allocations: 0 / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.2779, allocations: 19.92 kB / 408.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.109e-05/0.278, allocations: 56.12 kB / 409 MB, free: 15.64 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.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.yy,nRXFERGATE.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.0003318/0.2783, allocations: 370.6 kB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.2784, allocations: 39.77 kB / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.638e-05/0.2785, allocations: 67.14 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2785, allocations: 4 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2785, allocations: 0 / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2785, allocations: 0 / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009555/0.2794, allocations: 0.8173 MB / 410.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2795, allocations: 0 / 410.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-06/0.2795, allocations: 4 kB / 410.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2795, allocations: 0 / 410.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.2795, allocations: 8 kB / 410.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.2795, allocations: 8 kB / 410.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2795, allocations: 7.875 kB / 410.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006322/0.2802, allocations: 0.5332 MB / 410.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003044/0.2805, allocations: 248.6 kB / 411.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/0.2806, allocations: 15.98 kB / 411.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.2807, allocations: 8 kB / 411.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.914e-05/0.2808, allocations: 31.91 kB / 411.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.298e-05/0.2809, allocations: 59.94 kB / 411.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004344/0.2813, allocations: 390.9 kB / 411.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2813, allocations: 3.938 kB / 411.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.2816, allocations: 44 kB / 411.6 MB, free: 12.83 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,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 (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.0009446/0.2825, allocations: 1.096 MB / 412.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005022/0.2831, allocations: 445.5 kB / 413.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2831, allocations: 0 / 413.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003029/0.2834, allocations: 373.6 kB / 413.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.284, allocations: 120.4 kB / 413.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.2872, allocations: 2.757 MB / 416.4 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.2876, allocations: 0.8097 MB / 417.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.641e-05/0.2877, allocations: 8.656 kB / 417.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.929e-05/0.2877, allocations: 27.42 kB / 417.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2877, allocations: 0 / 417.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.3108, allocations: 6.038 MB / 423.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.799, allocations: 0 / 423.2 MB, free: 0.9141 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_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_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches