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: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 106.2 kB / 17.06 MB, free: 6.023 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.001588/0.001588, 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.452/1.452, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3207, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002658/0.3234, allocations: 1.505 MB / 402.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.3252, allocations: 0.852 MB / 403.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.255e-05/0.3252, allocations: 0 / 403.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.3254, allocations: 11.92 kB / 403.1 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.325e-05/0.3255, allocations: 15.86 kB / 403.1 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.3257, allocations: 51.88 kB / 403.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.3259, allocations: 143.7 kB / 403.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.3261, allocations: 24.22 kB / 403.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005797/0.3266, allocations: 0.581 MB / 403.9 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.3268, allocations: 71.7 kB / 404 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.737e-05/0.3268, allocations: 8 kB / 404 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.659e-05/0.3269, allocations: 8 kB / 404 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.554e-05/0.327, allocations: 71.69 kB / 404.1 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.3271, allocations: 123.1 kB / 404.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.3274, allocations: 374.6 kB / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3275, allocations: 0 / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3275, allocations: 0 / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3275, allocations: 0 / 404.6 MB, free: 5.02 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.0008611/0.3283, allocations: 0.7083 MB / 405.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3284, allocations: 16.02 kB / 405.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.135e-05/0.3285, allocations: 36.47 kB / 405.3 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.3288, allocations: 274.3 kB / 405.6 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.3288, allocations: 8.375 kB / 405.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.3288, allocations: 12.38 kB / 405.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/0.3292, allocations: 129.9 kB / 405.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3292, allocations: 0 / 405.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.3292, allocations: 4 kB / 405.7 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.3292, allocations: 3.984 kB / 405.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.3294, allocations: 59.97 kB / 405.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006617/0.33, allocations: 460.4 kB / 406.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.3303, allocations: 102.5 kB / 406.3 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.3304, allocations: 80.89 kB / 406.4 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.719e-06/0.3304, allocations: 0 / 406.4 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003464/0.3308, allocations: 206.7 kB / 406.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.513e-06/0.3308, allocations: 7.938 kB / 406.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008675/0.3317, allocations: 472.1 kB / 407.1 MB, free: 2.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.3318, allocations: 174.2 kB / 407.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000635/0.3324, allocations: 0.5129 MB / 407.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.3325, allocations: 29.7 kB / 407.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.3326, allocations: 105.1 kB / 407.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.426e-05/0.3326, allocations: 23.72 kB / 407.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.3328, allocations: 89.31 kB / 408 MB, free: 1.254 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3329, allocations: 322.8 kB / 408.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.3331, allocations: 55.97 kB / 408.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.3332, allocations: 77.69 kB / 408.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004549/0.3337, allocations: 349.5 kB / 408.8 MB, free: 408 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3337, allocations: 0 / 408.8 MB, free: 408 kB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005611/0.3343, allocations: 384.4 kB / 409.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.164e-05/0.3343, allocations: 118.8 kB / 409.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3344, allocations: 3.984 kB / 409.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3344, allocations: 4 kB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.139e-05/0.3344, allocations: 7.969 kB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3344, allocations: 4.062 kB / 409.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.3346, allocations: 19.92 kB / 409.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.658e-05/0.3347, allocations: 55.94 kB / 409.4 MB, free: 15.76 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.0003267/0.335, allocations: 370.8 kB / 409.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.244e-05/0.3351, allocations: 39.53 kB / 409.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.681e-05/0.3352, allocations: 67.14 kB / 409.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3352, allocations: 0 / 409.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3352, allocations: 8 kB / 409.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3352, allocations: 0 / 409.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009286/0.3361, allocations: 0.8198 MB / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3362, allocations: 0 / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-06/0.3362, allocations: 0 / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3362, allocations: 4 kB / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/0.3362, allocations: 12 kB / 410.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3362, allocations: 3.984 kB / 410.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3362, allocations: 7.938 kB / 410.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007341/0.337, allocations: 0.5253 MB / 411.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.3373, allocations: 248.4 kB / 411.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.3373, allocations: 15.94 kB / 411.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.3374, allocations: 8 kB / 411.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.3376, allocations: 27.91 kB / 411.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.734e-05/0.3376, allocations: 55.94 kB / 411.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004318/0.3381, allocations: 390.9 kB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3381, allocations: 0 / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.3384, 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,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.0001312/0.3385, allocations: 118.9 kB / 412.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.339, allocations: 441.7 kB / 412.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.339, allocations: 0 / 412.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002983/0.3393, allocations: 381.5 kB / 412.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005945/0.3399, allocations: 119.2 kB / 413 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.3412, allocations: 0.646 MB / 413.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005613/0.3417, allocations: 0.8097 MB / 414.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.855e-05/0.3418, allocations: 8.656 kB / 414.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/0.3418, allocations: 15.44 kB / 414.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3418, allocations: 0 / 414.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of Templates: time 0.008834/0.3507, allocations: 4.661 MB / 419.2 MB, free: 5.57 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins/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