Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008154/0.0008154, allocations: 99.02 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008533/0.0008534, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003245, allocations: 8 kB / 307.1 MB, free: 0.9844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1504, allocations: 51.52 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002142/0.1526, allocations: 1.225 MB / 359.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.1547, allocations: 0.8349 MB / 360.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.464e-05/0.1548, allocations: 0 / 360.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.698e-05/0.1549, allocations: 11.92 kB / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.623e-05/0.155, allocations: 11.92 kB / 360.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003239/0.1553, allocations: 35.91 kB / 360.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001857/0.1555, allocations: 107.7 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1557, allocations: 15.98 kB / 360.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005667/0.1562, allocations: 347.4 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.1564, allocations: 71.83 kB / 361.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.157e-05/0.1565, allocations: 3.938 kB / 361.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.767e-05/0.1565, allocations: 4 kB / 361.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.619e-05/0.1566, allocations: 59.83 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.925e-05/0.1567, allocations: 69.52 kB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.157, allocations: 283.3 kB / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.157, allocations: 4 kB / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1571, allocations: 0 / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1571, allocations: 3.938 kB / 361.7 MB, free: 10.37 MB / 302.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.0009626/0.158, allocations: 0.6673 MB / 362.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.1581, allocations: 11.97 kB / 362.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.1582, allocations: 43.52 kB / 362.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.1586, allocations: 257.4 kB / 362.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.1586, allocations: 4 kB / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/0.1587, allocations: 19.89 kB / 362.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003304/0.159, allocations: 121.6 kB / 362.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.159, allocations: 0 / 362.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.1591, allocations: 4 kB / 362.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.1591, allocations: 0 / 362.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.1592, allocations: 59.95 kB / 362.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000775/0.16, allocations: 464.5 kB / 363.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.1602, allocations: 90.55 kB / 363.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.1604, allocations: 84.88 kB / 363.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.1604, allocations: 4 kB / 363.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003827/0.1608, allocations: 198.7 kB / 363.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.883e-06/0.1608, allocations: 0 / 363.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008506/0.1617, allocations: 464.1 kB / 364.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.1618, allocations: 170.2 kB / 364.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007627/0.1626, allocations: 0.5168 MB / 364.8 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.1626, allocations: 29.7 kB / 364.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.998e-05/0.1627, allocations: 101.1 kB / 365 MB, free: 6.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.928e-05/0.1628, allocations: 31.59 kB / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.753e-05/0.1628, allocations: 4 kB / 365 MB, free: 6.781 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1629, allocations: 326.8 kB / 365.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.1631, allocations: 55.97 kB / 365.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.1633, allocations: 76.34 kB / 365.4 MB, free: 6.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.1635, allocations: 166.4 kB / 365.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1635, allocations: 0 / 365.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006225/0.1642, allocations: 376.2 kB / 366 MB, free: 5.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.1643, allocations: 126.8 kB / 366.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1643, allocations: 0 / 366.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.1644, allocations: 4 kB / 366.1 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.644e-05/0.1644, allocations: 4.141 kB / 366.1 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1644, allocations: 3.938 kB / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.1646, allocations: 15.98 kB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.187e-05/0.1647, allocations: 36 kB / 366.2 MB, free: 5.527 MB / 302.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.bUF3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.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.000415/0.1651, allocations: 371.3 kB / 366.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.1652, allocations: 35.62 kB / 366.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.1653, allocations: 63.16 kB / 366.6 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1653, allocations: 0 / 366.6 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.1653, allocations: 11.92 kB / 366.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.1653, allocations: 0 / 366.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.1664, allocations: 0.8133 MB / 367.4 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1664, allocations: 0 / 367.4 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-06/0.1664, allocations: 0 / 367.4 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1664, allocations: 0 / 367.4 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.1664, allocations: 12 kB / 367.4 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1664, allocations: 0 / 367.4 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1665, allocations: 4 kB / 367.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.1671, allocations: 0.5289 MB / 368 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003185/0.1674, allocations: 244.4 kB / 368.2 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.82e-05/0.1675, allocations: 12 kB / 368.2 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.1676, allocations: 15.98 kB / 368.2 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.1678, allocations: 23.97 kB / 368.3 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.236e-05/0.1678, allocations: 40.19 kB / 368.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005249/0.1684, allocations: 390.8 kB / 368.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1684, allocations: 4 kB / 368.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1687, allocations: 47.94 kB / 368.7 MB, free: 2.75 MB / 302.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,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.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.0001843/0.1689, allocations: 115 kB / 368.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005791/0.1695, allocations: 445.5 kB / 369.3 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1695, allocations: 0 / 369.3 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003387/0.1698, allocations: 377.6 kB / 369.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006529/0.1705, allocations: 117.7 kB / 369.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.1718, allocations: 0.7312 MB / 370.5 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005325/0.1724, allocations: 0.7986 MB / 371.3 MB, free: 36 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.652e-05/0.1725, allocations: 8.656 kB / 371.3 MB, free: 24 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.544e-05/0.1725, allocations: 11.44 kB / 371.3 MB, free: 12 kB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1725, allocations: 0 / 371.3 MB, free: 12 kB / 302.1 MB Notification: Performance of Templates: time 0.2312/0.4037, allocations: 3.754 MB / 375.1 MB, free: 18.74 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches