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: translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001285, allocations: 106.9 kB / 17.06 MB, free: 6.02 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.001208/0.001209, allocations: 191 kB / 18 MB, free: 5.105 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.437/1.437, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 47.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3207, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002785/0.3236, allocations: 1.5 MB / 402.2 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.3255, allocations: 0.852 MB / 403.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.819e-05/0.3256, allocations: 0 / 403.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.3257, allocations: 7.875 kB / 403.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.007e-05/0.3258, allocations: 19.86 kB / 403.1 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.3261, allocations: 51.88 kB / 403.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.3263, allocations: 143.8 kB / 403.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3264, allocations: 32.17 kB / 403.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005738/0.327, allocations: 0.5732 MB / 403.9 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.3272, allocations: 71.73 kB / 404 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.3272, allocations: 12 kB / 404 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.925e-05/0.3272, allocations: 8 kB / 404 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.777e-05/0.3274, allocations: 71.64 kB / 404.1 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.3275, allocations: 111.2 kB / 404.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003659/0.3279, allocations: 370.6 kB / 404.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3279, allocations: 0 / 404.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3279, allocations: 0 / 404.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.3279, allocations: 0 / 404.5 MB, free: 5.047 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.0008683/0.3288, allocations: 0.7278 MB / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3288, allocations: 8.031 kB / 405.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.749e-05/0.3289, allocations: 40.47 kB / 405.3 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.3292, allocations: 274.3 kB / 405.6 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.3292, allocations: 12.38 kB / 405.6 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.456e-05/0.3293, allocations: 12.31 kB / 405.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.3296, allocations: 132.9 kB / 405.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.3296, allocations: 0 / 405.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.3297, allocations: 4 kB / 405.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.3297, allocations: 3.938 kB / 405.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.3298, allocations: 55.97 kB / 405.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006412/0.3305, allocations: 464.5 kB / 406.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.3307, allocations: 102.5 kB / 406.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.3308, allocations: 84.89 kB / 406.4 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.3309, allocations: 3.938 kB / 406.4 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003492/0.3312, allocations: 202.7 kB / 406.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.3312, allocations: 0 / 406.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.000778/0.332, allocations: 480.1 kB / 407.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/0.3321, allocations: 170.2 kB / 407.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/0.3327, allocations: 0.5129 MB / 407.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.3327, allocations: 33.7 kB / 407.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.3328, allocations: 97.12 kB / 407.9 MB, free: 1.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.702e-05/0.3328, allocations: 27.7 kB / 407.9 MB, free: 1.355 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3329, allocations: 85.31 kB / 408 MB, free: 1.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.333, allocations: 330.8 kB / 408.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.3332, allocations: 59.97 kB / 408.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.3333, allocations: 77.62 kB / 408.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.3336, allocations: 339.3 kB / 408.8 MB, free: 416 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3336, allocations: 0 / 408.8 MB, free: 416 kB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004765/0.3341, allocations: 387 kB / 409.2 MB, free: 0 / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-05/0.3342, allocations: 126.8 kB / 409.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3342, allocations: 0 / 409.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3342, allocations: 0 / 409.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.363e-05/0.3343, allocations: 12.02 kB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.3343, allocations: 0 / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.3344, allocations: 11.94 kB / 409.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.518e-05/0.3345, allocations: 55.98 kB / 409.4 MB, free: 15.77 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.0003349/0.3348, allocations: 366.7 kB / 409.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.13e-05/0.3349, allocations: 39.53 kB / 409.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.335, allocations: 63.27 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.335, allocations: 3.938 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.335, allocations: 4.125 kB / 409.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.335, allocations: 0 / 409.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009568/0.336, allocations: 0.829 MB / 410.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.336, allocations: 0 / 410.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.947e-06/0.336, allocations: 0 / 410.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.336, allocations: 0 / 410.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.049e-05/0.3361, allocations: 15.98 kB / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3361, allocations: 0 / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3361, allocations: 3.938 kB / 410.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006163/0.3367, allocations: 0.5369 MB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002732/0.337, allocations: 244.4 kB / 411.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.528e-05/0.337, allocations: 12 kB / 411.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.3372, allocations: 11.98 kB / 411.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3373, allocations: 31.91 kB / 411.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-05/0.3373, allocations: 59.92 kB / 411.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004416/0.3378, allocations: 390.8 kB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3378, allocations: 0 / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.3381, allocations: 48 kB / 412 MB, free: 12.96 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.0001485/0.3382, allocations: 117.8 kB / 412.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005176/0.3388, allocations: 441.5 kB / 412.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3388, allocations: 0 / 412.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.3391, allocations: 377.6 kB / 412.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.3398, allocations: 109.8 kB / 413 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.3408, allocations: 0.6499 MB / 413.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.3413, allocations: 0.8058 MB / 414.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.458e-05/0.3414, allocations: 12.64 kB / 414.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.884e-05/0.3414, allocations: 11.44 kB / 414.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3414, allocations: 0 / 414.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Templates: time 0.007558/0.349, allocations: 4.673 MB / 419.2 MB, free: 5.578 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins/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