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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008215/0.0008214, allocations: 96.7 kB / 17.3 MB, free: 6.387 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.001078/0.001078, allocations: 177.1 kB / 18.21 MB, free: 5.551 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.753/1.753, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.000479/0.0004789, allocations: 12.47 kB / 281.5 MB, free: 3.328 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1473, allocations: 47.58 MB / 329.1 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002711/0.1501, allocations: 1.215 MB / 330.3 MB, free: 2.453 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.1531, allocations: 0.9024 MB / 331.2 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.433e-05/0.1532, allocations: 0 / 331.2 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.1534, allocations: 0 / 331.2 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1535, allocations: 23.84 kB / 331.2 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.1539, allocations: 39.97 kB / 331.2 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000195/0.1541, allocations: 115.7 kB / 331.3 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.1542, allocations: 20.23 kB / 331.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007646/0.155, allocations: 0.5498 MB / 331.9 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.1552, allocations: 71.64 kB / 332 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.877e-05/0.1552, allocations: 0 / 332 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.043e-05/0.1552, allocations: 4 kB / 332 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.1554, allocations: 63.77 kB / 332.1 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.1555, allocations: 136.8 kB / 332.2 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004011/0.1559, allocations: 346.7 kB / 332.5 MB, free: 180 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.156, allocations: 4 kB / 332.5 MB, free: 176 kB / 270.1 MB Notification: Performance of FrontEnd: time 5.471e-06/0.156, allocations: 3.984 kB / 332.5 MB, free: 172 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.156, allocations: 0 / 332.5 MB, free: 172 kB / 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.001017/0.157, allocations: 0.6608 MB / 333.2 MB, free: 15.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.007e-05/0.1571, allocations: 8.031 kB / 333.2 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.1572, allocations: 46.73 kB / 333.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.1574, allocations: 36.56 kB / 333.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.1578, allocations: 274.3 kB / 333.5 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.1578, allocations: 8.375 kB / 333.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.1579, allocations: 12.38 kB / 333.6 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/0.1583, allocations: 141.6 kB / 333.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1583, allocations: 0 / 333.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.1584, allocations: 4 kB / 333.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.1584, allocations: 0 / 333.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.1586, allocations: 59.97 kB / 333.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.1594, allocations: 468.4 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/0.1597, allocations: 94.55 kB / 334.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.1599, allocations: 84.83 kB / 334.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.1599, allocations: 0 / 334.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004578/0.1604, allocations: 202.7 kB / 334.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.784e-06/0.1604, allocations: 0 / 334.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001101/0.1615, allocations: 491.8 kB / 335.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.1616, allocations: 162.2 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.1628, allocations: 0.5091 MB / 335.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.1629, allocations: 33.7 kB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.1629, allocations: 101 kB / 335.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.073e-05/0.163, allocations: 35.62 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.57e-05/0.1631, allocations: 21.72 kB / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1632, allocations: 326.8 kB / 336.3 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.1634, allocations: 63.91 kB / 336.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.1635, allocations: 73.67 kB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.1639, allocations: 347.4 kB / 336.7 MB, free: 11.59 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1639, allocations: 0 / 336.7 MB, free: 11.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006043/0.1645, allocations: 384.3 kB / 337.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001576/0.1647, allocations: 126.8 kB / 337.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.1647, allocations: 112 / 337.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.1648, allocations: 3.969 kB / 337.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.337e-05/0.1648, allocations: 4 kB / 337.2 MB, free: 11.03 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.1648, allocations: 4 kB / 337.2 MB, free: 11.03 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.165, allocations: 12 kB / 337.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.449e-05/0.1651, allocations: 59.92 kB / 337.3 MB, free: 10.96 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.0004913/0.1656, allocations: 366.7 kB / 337.7 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.1657, allocations: 43.47 kB / 337.7 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.1658, allocations: 63.16 kB / 337.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.1659, allocations: 4 kB / 337.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.1659, allocations: 0 / 337.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.1659, allocations: 0 / 337.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.1671, allocations: 0.8217 MB / 338.6 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1672, allocations: 0 / 338.6 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.618e-06/0.1672, allocations: 0 / 338.6 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1672, allocations: 0 / 338.6 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.1672, allocations: 19.98 kB / 338.6 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.1672, allocations: 3.938 kB / 338.6 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.1672, allocations: 3.938 kB / 338.6 MB, free: 9.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007323/0.168, allocations: 0.5446 MB / 339.2 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.1684, allocations: 244.5 kB / 339.4 MB, free: 8.676 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.754e-05/0.1684, allocations: 8 kB / 339.4 MB, free: 8.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.1686, allocations: 19.92 kB / 339.4 MB, free: 8.648 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.1688, allocations: 23.92 kB / 339.5 MB, free: 8.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.713e-05/0.1688, allocations: 63.92 kB / 339.5 MB, free: 8.562 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005737/0.1694, allocations: 386.9 kB / 339.9 MB, free: 8.188 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1694, allocations: 0 / 339.9 MB, free: 8.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003529/0.1698, allocations: 44 kB / 339.9 MB, free: 8.145 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.001217/0.171, allocations: 1.093 MB / 341 MB, free: 7 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000629/0.1717, allocations: 433.5 kB / 341.5 MB, free: 6.527 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1717, allocations: 4.062 kB / 341.5 MB, free: 6.523 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003611/0.1721, allocations: 377.5 kB / 341.8 MB, free: 6.105 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007555/0.1728, allocations: 105.4 kB / 341.9 MB, free: 6 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004806/0.1776, allocations: 2.817 MB / 344.8 MB, free: 3.078 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007864/0.1785, allocations: 0.7983 MB / 345.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.1786, allocations: 8.656 kB / 345.6 MB, free: 2.246 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.108e-05/0.1787, allocations: 27.42 kB / 345.6 MB, free: 2.219 MB / 286.1 MB Notification: Performance of SimCode: time 2.344e-06/0.1787, allocations: 4 kB / 345.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02169/0.2004, allocations: 5.323 MB / 350.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003283/0.2008, allocations: 196.4 kB / 351.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.054, allocations: 4 kB / 351.1 MB, free: 12.54 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > 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","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches