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.002088/0.002088, allocations: 108.8 kB / 17.16 MB, free: 6.031 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.00244/0.00244, allocations: 190 kB / 18.07 MB, free: 5.266 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.818/1.818, allocations: 205.1 MB / 223.9 MB, free: 12.46 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: 51.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1431, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003557/0.1468, allocations: 1.562 MB / 328.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002224/0.149, allocations: 0.9101 MB / 329.1 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.204e-05/0.1491, allocations: 0 / 329.1 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.1493, allocations: 7.922 kB / 329.1 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.226e-05/0.1494, allocations: 11.94 kB / 329.1 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.1497, allocations: 43.89 kB / 329.1 MB, free: 2.34 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.1499, allocations: 107.8 kB / 329.2 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.15, allocations: 20.23 kB / 329.3 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007137/0.1508, allocations: 0.5576 MB / 329.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.1509, allocations: 75.62 kB / 329.9 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.151, allocations: 4 kB / 329.9 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.455e-05/0.151, allocations: 4 kB / 329.9 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1512, allocations: 67.75 kB / 330 MB, free: 1.504 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.1514, allocations: 111.1 kB / 330.1 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.1518, allocations: 358.7 kB / 330.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.1518, allocations: 0 / 330.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1518, allocations: 0 / 330.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1519, allocations: 0 / 330.4 MB, free: 1.043 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.0009935/0.1529, allocations: 0.7153 MB / 331.1 MB, free: 260 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.1e-05/0.1529, allocations: 15.97 kB / 331.2 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.466e-05/0.153, allocations: 32.56 kB / 331.2 MB, free: 212 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.1534, allocations: 278.3 kB / 331.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.1535, allocations: 8.375 kB / 331.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.1535, allocations: 8.375 kB / 331.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.1539, allocations: 129.9 kB / 331.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1539, allocations: 3.984 kB / 331.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.154, allocations: 7.938 kB / 331.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.154, allocations: 4 kB / 331.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.1541, allocations: 55.97 kB / 331.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.1549, allocations: 464.4 kB / 332.1 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.1551, allocations: 98.53 kB / 332.2 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1553, allocations: 80.89 kB / 332.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.1553, allocations: 4 kB / 332.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.1558, allocations: 218.6 kB / 332.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.1558, allocations: 0 / 332.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008871/0.1567, allocations: 471.9 kB / 333 MB, free: 14.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.1568, allocations: 174.2 kB / 333.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006301/0.1575, allocations: 0.5052 MB / 333.6 MB, free: 13.53 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.1575, allocations: 29.7 kB / 333.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.001e-05/0.1576, allocations: 105 kB / 333.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.1577, allocations: 31.59 kB / 333.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.1578, allocations: 89.41 kB / 333.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1579, allocations: 322.8 kB / 334.2 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1581, allocations: 59.97 kB / 334.3 MB, free: 12.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.1582, allocations: 73.67 kB / 334.3 MB, free: 12.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.1586, allocations: 347.7 kB / 334.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1586, allocations: 0 / 334.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005477/0.1591, allocations: 392.2 kB / 335.1 MB, free: 12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.1592, allocations: 122.8 kB / 335.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1593, allocations: 4.078 kB / 335.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1593, allocations: 0 / 335.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.356e-05/0.1593, allocations: 112 / 335.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1593, allocations: 7.922 kB / 335.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.1595, allocations: 27.83 kB / 335.2 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-05/0.1596, allocations: 55.94 kB / 335.3 MB, free: 11.76 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.0003688/0.1599, allocations: 366.8 kB / 335.6 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.77e-05/0.16, allocations: 39.62 kB / 335.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.1601, allocations: 67.14 kB / 335.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1601, allocations: 4 kB / 335.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1601, allocations: 0 / 335.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1601, allocations: 0 / 335.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009755/0.1611, allocations: 0.8095 MB / 336.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1611, allocations: 0 / 336.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.873e-06/0.1611, allocations: 7.938 kB / 336.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1612, allocations: 0 / 336.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.292e-05/0.1612, allocations: 15.98 kB / 336.6 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1612, allocations: 8 kB / 336.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.1612, allocations: 3.938 kB / 336.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006877/0.1619, allocations: 0.529 MB / 337.1 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003276/0.1622, allocations: 248.5 kB / 337.4 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.039e-05/0.1623, allocations: 12 kB / 337.4 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.1625, allocations: 11.94 kB / 337.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.1626, allocations: 31.91 kB / 337.4 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.16e-05/0.1627, allocations: 67.91 kB / 337.5 MB, free: 9.371 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004872/0.1632, allocations: 382.9 kB / 337.9 MB, free: 9 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1632, allocations: 4 kB / 337.9 MB, free: 8.996 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000292/0.1635, allocations: 43.91 kB / 337.9 MB, free: 8.953 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.0001635/0.1637, allocations: 119.1 kB / 338 MB, free: 8.828 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005459/0.1642, allocations: 437.5 kB / 338.4 MB, free: 8.352 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1642, allocations: 0 / 338.4 MB, free: 8.352 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000327/0.1646, allocations: 377.6 kB / 338.8 MB, free: 7.934 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006073/0.1652, allocations: 105.5 kB / 338.9 MB, free: 7.828 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1664, allocations: 0.7647 MB / 339.7 MB, free: 7.039 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.1668, allocations: 0.7908 MB / 340.5 MB, free: 6.223 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.897e-05/0.1669, allocations: 12.64 kB / 340.5 MB, free: 6.211 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.989e-05/0.1669, allocations: 11.44 kB / 340.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1669, allocations: 0 / 340.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of Templates: time 0.008204/0.1751, allocations: 4.393 MB / 344.9 MB, free: 1.715 MB / 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches