Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_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.001376/0.001376, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.001245/0.001245, allocations: 186.9 kB / 19.28 MB, free: 3.879 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.585/1.585, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001269/0.00127, allocations: 55.91 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1188, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002953/0.1218, allocations: 1.493 MB / 330.2 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.1237, allocations: 0.8974 MB / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.347e-05/0.1238, allocations: 0 / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.1239, allocations: 15.86 kB / 331.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.97e-05/0.124, allocations: 11.88 kB / 331.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.1243, allocations: 51.88 kB / 331.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.1245, allocations: 143.7 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.1246, allocations: 24.19 kB / 331.4 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006251/0.1253, allocations: 0.5576 MB / 331.9 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.1254, allocations: 79.69 kB / 332 MB, free: 468 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.216e-05/0.1255, allocations: 12 kB / 332 MB, free: 456 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.644e-05/0.1255, allocations: 8 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.358e-05/0.1256, allocations: 63.7 kB / 332.1 MB, free: 384 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1257, allocations: 115.2 kB / 332.2 MB, free: 268 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003634/0.1261, allocations: 366.7 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1261, allocations: 4 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1261, allocations: 3.938 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1261, allocations: 0 / 332.5 MB, free: 15.89 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.0008175/0.127, allocations: 0.7188 MB / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.127, allocations: 12.03 kB / 333.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.47e-05/0.1271, allocations: 40.55 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.1275, allocations: 270.3 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.1275, allocations: 4.375 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.1275, allocations: 8.375 kB / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.1278, allocations: 133.8 kB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1279, allocations: 0 / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.1279, allocations: 8 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1279, allocations: 0 / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.128, allocations: 63.95 kB / 333.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007005/0.1288, allocations: 468.4 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/0.1289, allocations: 90.55 kB / 334.3 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.1291, allocations: 88.88 kB / 334.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-06/0.1291, allocations: 0 / 334.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003346/0.1295, allocations: 206.7 kB / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.1295, allocations: 0 / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007745/0.1303, allocations: 484 kB / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.1304, allocations: 166.2 kB / 335.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006203/0.131, allocations: 0.513 MB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.1311, allocations: 29.7 kB / 335.8 MB, free: 12.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/0.1311, allocations: 101.9 kB / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.929e-05/0.1312, allocations: 31.64 kB / 335.9 MB, free: 12.21 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.1313, allocations: 89.41 kB / 336 MB, free: 12.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1315, allocations: 326.9 kB / 336.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.1316, allocations: 63.91 kB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.1318, allocations: 77.69 kB / 336.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.1321, allocations: 347.6 kB / 336.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1321, allocations: 0 / 336.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005371/0.1327, allocations: 392.2 kB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.83e-05/0.1328, allocations: 122.8 kB / 337.3 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1328, allocations: 0 / 337.3 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1328, allocations: 4 kB / 337.3 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.108e-05/0.1328, allocations: 0 / 337.3 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.1328, allocations: 0 / 337.3 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.133, allocations: 11.98 kB / 337.3 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.285e-05/0.1331, allocations: 55.94 kB / 337.4 MB, free: 10.62 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,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.000348/0.1334, allocations: 366.7 kB / 337.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.1335, allocations: 43.56 kB / 337.8 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.1336, allocations: 67.14 kB / 337.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1336, allocations: 3.938 kB / 337.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1336, allocations: 0 / 337.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1336, allocations: 0 / 337.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000937/0.1345, allocations: 0.8174 MB / 338.7 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1346, allocations: 0 / 338.7 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-06/0.1346, allocations: 0 / 338.7 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1346, allocations: 0 / 338.7 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.1346, allocations: 12 kB / 338.7 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1346, allocations: 4 kB / 338.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.1346, allocations: 7.922 kB / 338.7 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006332/0.1353, allocations: 0.5368 MB / 339.2 MB, free: 8.617 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003483/0.1356, allocations: 248.5 kB / 339.5 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/0.1357, allocations: 12.17 kB / 339.5 MB, free: 8.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.1358, allocations: 12 kB / 339.5 MB, free: 8.332 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.1359, allocations: 31.91 kB / 339.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-05/0.136, allocations: 63.94 kB / 339.6 MB, free: 8.238 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004631/0.1365, allocations: 390.9 kB / 340 MB, free: 7.855 MB / 286.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.1365, allocations: 0 / 340 MB, free: 7.855 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002771/0.1368, allocations: 43.94 kB / 340 MB, free: 7.812 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 (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.0001584/0.137, allocations: 115 kB / 340.1 MB, free: 7.691 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005707/0.1375, allocations: 437.5 kB / 340.6 MB, free: 7.215 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1375, allocations: 3.938 kB / 340.6 MB, free: 7.211 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.1379, allocations: 381.6 kB / 340.9 MB, free: 6.789 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.1384, allocations: 113.9 kB / 341.1 MB, free: 6.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.1396, allocations: 0.6459 MB / 341.7 MB, free: 6.008 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.1401, allocations: 0.8059 MB / 342.5 MB, free: 5.172 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.875e-05/0.1402, allocations: 4.672 kB / 342.5 MB, free: 5.168 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.967e-05/0.1402, allocations: 15.38 kB / 342.5 MB, free: 5.152 MB / 286.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1402, allocations: 4 kB / 342.5 MB, free: 5.148 MB / 286.1 MB Notification: Performance of Templates: time 0.008456/0.1487, allocations: 4.669 MB / 347.2 MB, free: 392 kB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches