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.0009237/0.0009237, allocations: 96.83 kB / 16.3 MB, free: 5.996 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.001002/0.001002, allocations: 181.1 kB / 17.2 MB, free: 5.906 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.417/1.417, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 6.531 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1219, allocations: 50.42 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001548/0.1235, allocations: 1.191 MB / 352.3 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.125, allocations: 0.824 MB / 353.1 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.958e-05/0.1251, allocations: 0 / 353.1 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.281e-05/0.1251, allocations: 11.92 kB / 353.2 MB, free: 9.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.288e-05/0.1252, allocations: 15.97 kB / 353.2 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.1254, allocations: 39.83 kB / 353.2 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.1256, allocations: 63.92 kB / 353.3 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.575e-05/0.1257, allocations: 16.23 kB / 353.3 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004413/0.1261, allocations: 423.2 kB / 353.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.1262, allocations: 75.81 kB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1263, allocations: 8 kB / 353.8 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.47e-05/0.1263, allocations: 4 kB / 353.8 MB, free: 9.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.473e-05/0.1264, allocations: 63.77 kB / 353.8 MB, free: 9.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.337e-05/0.1265, allocations: 73.56 kB / 353.9 MB, free: 8.941 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.1267, allocations: 295.5 kB / 354.2 MB, free: 8.652 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.1267, allocations: 0 / 354.2 MB, free: 8.652 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1267, allocations: 0 / 354.2 MB, free: 8.652 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1267, allocations: 0 / 354.2 MB, free: 8.652 MB / 286.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.0005775/0.1273, allocations: 0.6604 MB / 354.9 MB, free: 7.918 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.1273, allocations: 8.031 kB / 354.9 MB, free: 7.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.1274, allocations: 39.62 kB / 354.9 MB, free: 7.871 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.1277, allocations: 253.4 kB / 355.2 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.1277, allocations: 7.984 kB / 355.2 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/0.1278, allocations: 12 kB / 355.2 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.1281, allocations: 129.6 kB / 355.3 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.1281, allocations: 0 / 355.3 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.1281, allocations: 7.953 kB / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.1281, allocations: 0 / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.1283, allocations: 55.97 kB / 355.4 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006314/0.1289, allocations: 468.4 kB / 355.8 MB, free: 6.859 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.1291, allocations: 94.55 kB / 355.9 MB, free: 6.758 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.1291, allocations: 7.891 kB / 355.9 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.1294, allocations: 206.8 kB / 356.1 MB, free: 6.523 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.615e-06/0.1294, allocations: 0 / 356.1 MB, free: 6.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008178/0.1302, allocations: 0.631 MB / 356.8 MB, free: 5.824 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.077e-05/0.1303, allocations: 170.2 kB / 356.9 MB, free: 5.621 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005662/0.1309, allocations: 0.5168 MB / 357.4 MB, free: 5.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.1309, allocations: 29.7 kB / 357.5 MB, free: 5.062 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.765e-05/0.131, allocations: 101 kB / 357.6 MB, free: 4.961 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.1311, allocations: 27.64 kB / 357.6 MB, free: 4.934 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.1311, allocations: 4 kB / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.1312, allocations: 326.8 kB / 357.9 MB, free: 4.602 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.1313, allocations: 55.97 kB / 358 MB, free: 4.547 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.1314, allocations: 69.69 kB / 358 MB, free: 4.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.1316, allocations: 173.7 kB / 358.2 MB, free: 4.281 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1316, allocations: 0 / 358.2 MB, free: 4.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000467/0.1321, allocations: 384.2 kB / 358.6 MB, free: 3.875 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.31e-05/0.1322, allocations: 130.8 kB / 358.7 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1322, allocations: 4.031 kB / 358.7 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.1322, allocations: 112 / 358.7 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.194e-05/0.1322, allocations: 7.938 kB / 358.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1322, allocations: 0 / 358.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.1324, allocations: 8 kB / 358.7 MB, free: 3.703 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.77e-05/0.1325, allocations: 59.92 kB / 358.8 MB, free: 3.645 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.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000313/0.1328, allocations: 358.8 kB / 359.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.254e-05/0.1328, allocations: 43.48 kB / 359.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.176e-05/0.1329, allocations: 67.28 kB / 359.3 MB, free: 3.145 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1329, allocations: 0 / 359.3 MB, free: 3.145 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.133, allocations: 8 kB / 359.3 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.133, allocations: 0 / 359.3 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008928/0.1339, allocations: 0.8212 MB / 360.1 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.1339, allocations: 3.953 kB / 360.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-06/0.1339, allocations: 0 / 360.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1339, allocations: 0 / 360.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.1339, allocations: 19.98 kB / 360.1 MB, free: 2.211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1339, allocations: 0 / 360.1 MB, free: 2.211 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1339, allocations: 4 kB / 360.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.1345, allocations: 0.5329 MB / 360.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.1349, allocations: 252.4 kB / 360.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.799e-05/0.1349, allocations: 8 kB / 360.9 MB, free: 1.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.1351, allocations: 15.98 kB / 360.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1352, allocations: 27.97 kB / 360.9 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.454e-05/0.1353, allocations: 52 kB / 361 MB, free: 1.266 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004347/0.1357, allocations: 398.8 kB / 361.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1357, allocations: 0 / 361.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.136, allocations: 40 kB / 361.4 MB, free: 0.8359 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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001667/0.1362, allocations: 111 kB / 361.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004888/0.1367, allocations: 449.5 kB / 362 MB, free: 236 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1367, allocations: 0 / 362 MB, free: 236 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.137, allocations: 373.6 kB / 362.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004952/0.1375, allocations: 108.3 kB / 362.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009999/0.1385, allocations: 0.7349 MB / 363.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.1389, allocations: 0.8024 MB / 364 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.711e-05/0.1389, allocations: 12.64 kB / 364 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.139, allocations: 11.44 kB / 364 MB, free: 14.1 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.139, allocations: 0 / 364 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Templates: time 0.006483/0.1455, allocations: 4.052 MB / 368.1 MB, free: 9.992 MB / 302.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","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches