Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER") translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_3.2.3_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.001373/0.001373, allocations: 106.2 kB / 18.25 MB, free: 4.785 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.001574/0.001574, allocations: 195.3 kB / 19.18 MB, free: 3.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 225 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 47.92 kB / 281.3 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09682, allocations: 46.63 MB / 327.9 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.003312/0.1002, allocations: 1.482 MB / 329.4 MB, free: 2.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.1023, allocations: 0.9106 MB / 330.3 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.151e-05/0.1024, allocations: 0 / 330.3 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.1026, allocations: 11.86 kB / 330.4 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.683e-05/0.1027, allocations: 15.86 kB / 330.4 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.103, allocations: 47.88 kB / 330.4 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002335/0.1032, allocations: 139.8 kB / 330.5 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.1033, allocations: 28.22 kB / 330.6 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006326/0.104, allocations: 0.5615 MB / 331.1 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.1042, allocations: 75.62 kB / 331.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.051e-05/0.1042, allocations: 12 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.769e-05/0.1043, allocations: 8 kB / 331.2 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.837e-05/0.1044, allocations: 63.77 kB / 331.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.1045, allocations: 115.1 kB / 331.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.1049, allocations: 366.8 kB / 331.8 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1049, allocations: 0 / 331.8 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.1049, allocations: 4 kB / 331.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.1049, allocations: 3.938 kB / 331.8 MB, free: 0.6211 MB / 270.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.001046/0.106, allocations: 0.7152 MB / 332.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.106, allocations: 12.03 kB / 332.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.759e-05/0.1061, allocations: 32.56 kB / 332.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.1065, allocations: 274.3 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.1065, allocations: 8.312 kB / 332.8 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.615e-05/0.1065, allocations: 12.38 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.1069, allocations: 133.9 kB / 332.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1069, allocations: 4 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1069, allocations: 4 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.107, allocations: 0 / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001579/0.1071, allocations: 63.95 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000732/0.1079, allocations: 464.4 kB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.1081, allocations: 98.55 kB / 333.6 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.1082, allocations: 80.89 kB / 333.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.1083, allocations: 4 kB / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003824/0.1087, allocations: 210.6 kB / 333.9 MB, free: 14.33 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.864e-06/0.1087, allocations: 0 / 333.9 MB, free: 14.33 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008394/0.1095, allocations: 471.9 kB / 334.3 MB, free: 13.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.1096, allocations: 170.2 kB / 334.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006668/0.1103, allocations: 0.513 MB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.1103, allocations: 29.7 kB / 335 MB, free: 13.08 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.432e-05/0.1104, allocations: 101 kB / 335.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/0.1105, allocations: 35.58 kB / 335.2 MB, free: 12.94 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.1106, allocations: 81.42 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1108, allocations: 326.8 kB / 335.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.1109, allocations: 55.91 kB / 335.6 MB, free: 12.47 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.1111, allocations: 81.67 kB / 335.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003851/0.1115, allocations: 347.7 kB / 336 MB, free: 11.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1115, allocations: 0 / 336 MB, free: 11.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005831/0.1121, allocations: 388.4 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-05/0.1122, allocations: 122.8 kB / 336.5 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1122, allocations: 4.109 kB / 336.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1122, allocations: 3.938 kB / 336.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.359e-05/0.1122, allocations: 0 / 336.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.1122, allocations: 4.031 kB / 336.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/0.1124, allocations: 15.98 kB / 336.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.1125, allocations: 59.94 kB / 336.6 MB, free: 11.35 MB / 286.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.0003632/0.1129, allocations: 374.8 kB / 337 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.1129, allocations: 39.53 kB / 337 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.1131, allocations: 63.16 kB / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1131, allocations: 4 kB / 337.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1131, allocations: 0 / 337.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.1131, allocations: 7.984 kB / 337.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.1141, allocations: 0.8017 MB / 337.9 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1141, allocations: 0 / 337.9 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.706e-06/0.1141, allocations: 11.97 kB / 337.9 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1141, allocations: 0 / 337.9 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.1142, allocations: 12 kB / 337.9 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1142, allocations: 4 kB / 337.9 MB, free: 9.926 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.1142, allocations: 11.86 kB / 337.9 MB, free: 9.914 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.1149, allocations: 0.5369 MB / 338.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003289/0.1152, allocations: 240.5 kB / 338.7 MB, free: 9.082 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.422e-05/0.1153, allocations: 12 kB / 338.7 MB, free: 9.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.1154, allocations: 11.98 kB / 338.7 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.1156, allocations: 31.91 kB / 338.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/0.1156, allocations: 55.94 kB / 338.8 MB, free: 8.973 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004825/0.1161, allocations: 382.9 kB / 339.2 MB, free: 8.598 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1161, allocations: 0 / 339.2 MB, free: 8.598 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.1164, allocations: 47.94 kB / 339.2 MB, free: 8.551 MB / 286.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.0001458/0.1166, allocations: 121.6 kB / 339.4 MB, free: 8.422 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005402/0.1171, allocations: 449.6 kB / 339.8 MB, free: 7.934 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1172, allocations: 0 / 339.8 MB, free: 7.934 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003238/0.1175, allocations: 373.6 kB / 340.2 MB, free: 7.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006322/0.1181, allocations: 112.7 kB / 340.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.1193, allocations: 0.7061 MB / 341 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.1198, allocations: 0.8137 MB / 341.8 MB, free: 5.828 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.1199, allocations: 11.44 kB / 341.8 MB, free: 5.816 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1199, allocations: 3.938 kB / 341.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of Templates: time 0.005099/0.125, allocations: 2.68 MB / 344.5 MB, free: 3.07 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches