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.001419/0.001419, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.001644/0.001644, allocations: 179.3 kB / 17.82 MB, free: 5.652 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.756/1.756, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005376/0.0005376, allocations: 19.44 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1386, allocations: 47.57 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001911/0.1406, allocations: 1.206 MB / 329.5 MB, free: 2.895 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.1426, allocations: 0.8475 MB / 330.4 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.794e-05/0.1427, allocations: 0 / 330.4 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.697e-05/0.1428, allocations: 7.922 kB / 330.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.1429, allocations: 19.91 kB / 330.4 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.1433, allocations: 35.89 kB / 330.4 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.1434, allocations: 71.86 kB / 330.5 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1436, allocations: 23.98 kB / 330.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000436/0.144, allocations: 287.5 kB / 330.8 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.1442, allocations: 63.83 kB / 330.9 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.629e-05/0.1443, allocations: 4 kB / 330.9 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.177e-05/0.1443, allocations: 4 kB / 330.9 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.1444, allocations: 67.75 kB / 330.9 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.514e-05/0.1445, allocations: 77.5 kB / 331 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.1448, allocations: 275.4 kB / 331.3 MB, free: 1.113 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1448, allocations: 0 / 331.3 MB, free: 1.113 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1449, allocations: 0 / 331.3 MB, free: 1.113 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1449, allocations: 0 / 331.3 MB, free: 1.113 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.0008616/0.1457, allocations: 0.6685 MB / 332 MB, free: 380 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.1458, allocations: 11.97 kB / 332 MB, free: 368 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.271e-05/0.1459, allocations: 39.53 kB / 332 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003891/0.1463, allocations: 257.3 kB / 332.3 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.1463, allocations: 8 kB / 332.3 MB, free: 20 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.1464, allocations: 8 kB / 332.3 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000372/0.1468, allocations: 125.5 kB / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1468, allocations: 0 / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.1468, allocations: 4 kB / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1468, allocations: 4 kB / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.147, allocations: 59.95 kB / 332.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007102/0.1477, allocations: 456.6 kB / 332.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.1479, allocations: 98.42 kB / 333 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.1479, allocations: 4 kB / 333 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003558/0.1483, allocations: 198.8 kB / 333.2 MB, free: 14.99 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.513e-06/0.1483, allocations: 0 / 333.2 MB, free: 14.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008415/0.1491, allocations: 0.6154 MB / 333.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.1492, allocations: 170.2 kB / 334 MB, free: 14.11 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006152/0.1499, allocations: 0.509 MB / 334.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.1499, allocations: 33.7 kB / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.61e-05/0.15, allocations: 101 kB / 334.6 MB, free: 13.45 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.303e-05/0.15, allocations: 35.62 kB / 334.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.691e-05/0.1501, allocations: 4 kB / 334.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1502, allocations: 326.8 kB / 335 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1503, allocations: 55.97 kB / 335 MB, free: 13.03 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.1504, allocations: 77.61 kB / 335.1 MB, free: 12.95 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.1506, allocations: 162.8 kB / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1506, allocations: 0 / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004978/0.1511, allocations: 372.3 kB / 335.6 MB, free: 12.37 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-05/0.1512, allocations: 122.8 kB / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1513, allocations: 0 / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-05/0.1513, allocations: 7.984 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.256e-05/0.1513, allocations: 7.922 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.1514, allocations: 0 / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.1515, allocations: 16.02 kB / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.796e-05/0.1516, allocations: 47.92 kB / 335.8 MB, free: 12.14 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,$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.0004183/0.152, allocations: 370.4 kB / 336.2 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.481e-05/0.1521, allocations: 35.62 kB / 336.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.1522, allocations: 59.16 kB / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1522, allocations: 0 / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1522, allocations: 0 / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1523, allocations: 0 / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.1533, allocations: 0.8095 MB / 337.1 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1533, allocations: 4 kB / 337.1 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.506e-06/0.1533, allocations: 0 / 337.1 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1533, allocations: 4 kB / 337.1 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.1534, allocations: 15.97 kB / 337.1 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1534, allocations: 0 / 337.1 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1534, allocations: 0 / 337.1 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006946/0.1541, allocations: 0.5255 MB / 337.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/0.1544, allocations: 248.4 kB / 337.9 MB, free: 9.906 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.1545, allocations: 8 kB / 337.9 MB, free: 9.898 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.1546, allocations: 19.94 kB / 337.9 MB, free: 9.879 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.1547, allocations: 23.97 kB / 337.9 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/0.1548, allocations: 51.86 kB / 338 MB, free: 9.805 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004875/0.1553, allocations: 390.8 kB / 338.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1553, allocations: 0 / 338.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000288/0.1556, allocations: 44 kB / 338.4 MB, free: 9.383 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 (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.0002011/0.1558, allocations: 119 kB / 338.5 MB, free: 9.258 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006169/0.1564, allocations: 433.5 kB / 339 MB, free: 8.785 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1565, allocations: 0 / 339 MB, free: 8.785 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003621/0.1568, allocations: 381.8 kB / 339.3 MB, free: 8.363 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.1574, allocations: 101.4 kB / 339.4 MB, free: 8.262 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.1585, allocations: 0.7311 MB / 340.2 MB, free: 7.508 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.159, allocations: 0.8063 MB / 341 MB, free: 6.676 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.963e-05/0.1591, allocations: 12.64 kB / 341 MB, free: 6.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.51e-05/0.1591, allocations: 15.44 kB / 341 MB, free: 6.645 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1591, allocations: 0 / 341 MB, free: 6.645 MB / 286.1 MB Notification: Performance of Templates: time 0.007506/0.1666, allocations: 3.756 MB / 344.7 MB, free: 2.891 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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