Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.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.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001331/0.001331, allocations: 190 kB / 18.07 MB, free: 5.414 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.893/1.893, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001428/0.001428, allocations: 47.92 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1602, allocations: 46.62 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003685/0.1639, allocations: 1.577 MB / 328.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002514/0.1665, allocations: 0.9101 MB / 329.1 MB, free: 2.387 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.983e-05/0.1666, allocations: 4 kB / 329.1 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.1668, allocations: 3.938 kB / 329.1 MB, free: 2.379 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.935e-05/0.1669, allocations: 15.91 kB / 329.1 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.1672, allocations: 35.97 kB / 329.1 MB, free: 2.328 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001723/0.1674, allocations: 119.7 kB / 329.2 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.1676, allocations: 23.98 kB / 329.3 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006179/0.1682, allocations: 379.3 kB / 329.6 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.1683, allocations: 63.7 kB / 329.7 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.1684, allocations: 4 kB / 329.7 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.557e-05/0.1685, allocations: 4 kB / 329.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.1686, allocations: 63.75 kB / 329.8 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.1688, allocations: 119.1 kB / 329.9 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.1693, allocations: 342.8 kB / 330.2 MB, free: 1.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.1693, allocations: 3.938 kB / 330.2 MB, free: 1.227 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1693, allocations: 0 / 330.2 MB, free: 1.227 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.1693, allocations: 0 / 330.2 MB, free: 1.227 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.001041/0.1704, allocations: 0.723 MB / 331 MB, free: 440 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.859e-05/0.1705, allocations: 8.031 kB / 331 MB, free: 432 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.1706, allocations: 48.45 kB / 331 MB, free: 384 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.171, allocations: 262.3 kB / 331.3 MB, free: 80 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.171, allocations: 12.38 kB / 331.3 MB, free: 68 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.171, allocations: 4.375 kB / 331.3 MB, free: 64 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003869/0.1714, allocations: 133.9 kB / 331.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.1715, allocations: 0 / 331.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.1715, allocations: 7.938 kB / 331.4 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.1715, allocations: 0 / 331.4 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.1717, allocations: 59.91 kB / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/0.1724, allocations: 456.6 kB / 331.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.1727, allocations: 102.5 kB / 332 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.1728, allocations: 80.89 kB / 332.1 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.1729, allocations: 0 / 332.1 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004639/0.1733, allocations: 202.6 kB / 332.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.1733, allocations: 0 / 332.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008379/0.1742, allocations: 476.4 kB / 332.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.1743, allocations: 170.2 kB / 332.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006356/0.175, allocations: 0.5129 MB / 333.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.175, allocations: 33.7 kB / 333.5 MB, free: 13.69 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.216e-05/0.1751, allocations: 97.12 kB / 333.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.1751, allocations: 23.66 kB / 333.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.1753, allocations: 81.41 kB / 333.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.1755, allocations: 330.8 kB / 334 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.1756, allocations: 59.97 kB / 334.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.1757, allocations: 69.69 kB / 334.1 MB, free: 13.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.1761, allocations: 343.2 kB / 334.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1761, allocations: 0 / 334.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005897/0.1767, allocations: 380.2 kB / 334.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.1768, allocations: 122.8 kB / 335 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.1768, allocations: 0 / 335 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1768, allocations: 8.031 kB / 335 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.086e-05/0.1769, allocations: 0 / 335 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.1769, allocations: 0 / 335 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.1771, allocations: 15.98 kB / 335 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.408e-05/0.1771, allocations: 36 kB / 335 MB, free: 12.02 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.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.yy,bUF3S.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.0004392/0.1776, allocations: 362.2 kB / 335.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.824e-05/0.1776, allocations: 35.62 kB / 335.4 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.1778, allocations: 75.08 kB / 335.5 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1778, allocations: 0 / 335.5 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.1778, allocations: 4.109 kB / 335.5 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1778, allocations: 3.938 kB / 335.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.1789, allocations: 0.8172 MB / 336.3 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1789, allocations: 4 kB / 336.3 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.943e-06/0.1789, allocations: 0 / 336.3 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1789, allocations: 0 / 336.3 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.179, allocations: 8 kB / 336.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.179, allocations: 0 / 336.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.179, allocations: 3.938 kB / 336.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000672/0.1797, allocations: 0.5252 MB / 336.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003073/0.18, allocations: 244.3 kB / 337.1 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/0.1801, allocations: 12 kB / 337.1 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.1802, allocations: 12.23 kB / 337.1 MB, free: 9.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.1803, allocations: 31.91 kB / 337.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/0.1804, allocations: 43.94 kB / 337.2 MB, free: 9.676 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004917/0.1809, allocations: 390.9 kB / 337.6 MB, free: 9.297 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1809, allocations: 4 kB / 337.6 MB, free: 9.293 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000295/0.1812, allocations: 44 kB / 337.6 MB, free: 9.25 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,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 (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.0001872/0.1814, allocations: 111 kB / 337.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005748/0.182, allocations: 437.5 kB / 338.1 MB, free: 8.656 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.182, allocations: 0 / 338.1 MB, free: 8.656 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004242/0.1824, allocations: 377.6 kB / 338.5 MB, free: 8.238 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.1831, allocations: 117.4 kB / 338.6 MB, free: 8.121 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.1845, allocations: 0.7611 MB / 339.4 MB, free: 7.336 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005306/0.185, allocations: 0.8022 MB / 340.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.527e-05/0.1851, allocations: 8.656 kB / 340.2 MB, free: 6.496 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.195e-05/0.1851, allocations: 11.44 kB / 340.2 MB, free: 6.484 MB / 286.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1851, allocations: 0 / 340.2 MB, free: 6.484 MB / 286.1 MB Notification: Performance of Templates: time 0.008746/0.1939, allocations: 4.098 MB / 344.3 MB, free: 2.383 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches