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.001124/0.001124, allocations: 93.69 kB / 17.3 MB, free: 6.344 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.001212/0.001213, allocations: 178.9 kB / 18.21 MB, free: 5.531 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.791/1.791, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005892/0.000589, allocations: 8 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1476, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002279/0.15, allocations: 1.231 MB / 330.2 MB, free: 2.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.1524, allocations: 0.9024 MB / 331.1 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.064e-05/0.1525, allocations: 0 / 331.1 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.1527, allocations: 11.92 kB / 331.1 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1529, allocations: 15.91 kB / 331.1 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004405/0.1533, allocations: 39.91 kB / 331.2 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.1536, allocations: 111.7 kB / 331.3 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1538, allocations: 35.98 kB / 331.3 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000688/0.1545, allocations: 371.3 kB / 331.7 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.1546, allocations: 63.7 kB / 331.7 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.173e-05/0.1547, allocations: 4 kB / 331.7 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.839e-05/0.1547, allocations: 4 kB / 331.7 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.1549, allocations: 59.77 kB / 331.8 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.1552, allocations: 132.8 kB / 331.9 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.1556, allocations: 338.7 kB / 332.3 MB, free: 460 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.219e-05/0.1556, allocations: 4 kB / 332.3 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.1557, allocations: 0 / 332.3 MB, free: 456 kB / 270.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.1557, allocations: 4 kB / 332.3 MB, free: 452 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.0009702/0.1567, allocations: 0.657 MB / 332.9 MB, free: 15.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.942e-05/0.1567, allocations: 8.031 kB / 332.9 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.1568, allocations: 40.47 kB / 333 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.1573, allocations: 270.3 kB / 333.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.1573, allocations: 12.31 kB / 333.2 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.1574, allocations: 8.375 kB / 333.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.1578, allocations: 137.8 kB / 333.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1578, allocations: 0 / 333.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.1578, allocations: 8 kB / 333.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1579, allocations: 0 / 333.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.158, allocations: 55.97 kB / 333.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007786/0.1588, allocations: 452.5 kB / 333.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.159, allocations: 94.55 kB / 334 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.1592, allocations: 84.89 kB / 334.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.1592, allocations: 0 / 334.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004297/0.1596, allocations: 202.6 kB / 334.3 MB, free: 14.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.1597, allocations: 3.938 kB / 334.3 MB, free: 14.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008961/0.1606, allocations: 460.1 kB / 334.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.1607, allocations: 170.3 kB / 334.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.1615, allocations: 0.5246 MB / 335.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.1616, allocations: 29.7 kB / 335.4 MB, free: 12.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.1617, allocations: 105 kB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.874e-05/0.1617, allocations: 31.58 kB / 335.6 MB, free: 12.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.1618, allocations: 25.7 kB / 335.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.162, allocations: 326.8 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.1622, allocations: 55.97 kB / 336 MB, free: 12.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.1623, allocations: 69.69 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004358/0.1628, allocations: 339.3 kB / 336.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1628, allocations: 0 / 336.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006652/0.1635, allocations: 384.6 kB / 336.7 MB, free: 11.56 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.1636, allocations: 122.8 kB / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1636, allocations: 0 / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.553e-05/0.1636, allocations: 0 / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.329e-05/0.1637, allocations: 0 / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.1637, allocations: 0 / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.1639, allocations: 23.92 kB / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.528e-05/0.164, allocations: 40 kB / 336.9 MB, free: 11.36 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.000519/0.1645, allocations: 366.2 kB / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.122e-05/0.1646, allocations: 39.61 kB / 337.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.1648, allocations: 63.14 kB / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1648, allocations: 0 / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.1648, allocations: 0 / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.1648, allocations: 4 kB / 337.4 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.1662, allocations: 0.8135 MB / 338.2 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.1662, allocations: 4.062 kB / 338.2 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.879e-06/0.1662, allocations: 0 / 338.2 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1662, allocations: 0 / 338.2 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.1663, allocations: 12 kB / 338.2 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.1663, allocations: 3.938 kB / 338.2 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.1663, allocations: 7.875 kB / 338.2 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000828/0.1671, allocations: 0.5252 MB / 338.8 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003827/0.1675, allocations: 248.3 kB / 339 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.727e-05/0.1676, allocations: 11.94 kB / 339 MB, free: 9.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.1678, allocations: 15.98 kB / 339 MB, free: 9.074 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.1679, allocations: 23.91 kB / 339 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.929e-05/0.168, allocations: 47.94 kB / 339.1 MB, free: 9.004 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005008/0.1685, allocations: 390.9 kB / 339.5 MB, free: 8.625 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1685, allocations: 0 / 339.5 MB, free: 8.625 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003027/0.1688, allocations: 40 kB / 339.5 MB, free: 8.586 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.0002404/0.1691, allocations: 115 kB / 339.6 MB, free: 8.465 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006283/0.1697, allocations: 437.5 kB / 340.1 MB, free: 7.988 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1697, allocations: 0 / 340.1 MB, free: 7.988 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003937/0.1701, allocations: 377.6 kB / 340.4 MB, free: 7.57 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007017/0.1708, allocations: 109.5 kB / 340.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.1721, allocations: 0.7508 MB / 341.3 MB, free: 6.688 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005513/0.1727, allocations: 0.81 MB / 342.1 MB, free: 5.852 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.137e-05/0.1727, allocations: 8.656 kB / 342.1 MB, free: 5.84 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.1728, allocations: 11.44 kB / 342.1 MB, free: 5.828 MB / 286.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1728, allocations: 0 / 342.1 MB, free: 5.828 MB / 286.1 MB Notification: Performance of Templates: time 0.008509/0.1813, allocations: 3.852 MB / 346 MB, free: 1.973 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