Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 102.9 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.001241/0.001242, 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.943/1.943, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.002226/0.002226, allocations: 55.92 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.149, allocations: 46.62 MB / 326.6 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.005125/0.1542, allocations: 1.616 MB / 328.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002644/0.1569, allocations: 0.9335 MB / 329.1 MB, free: 2.336 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.157, allocations: 4 kB / 329.1 MB, free: 2.332 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.1572, allocations: 7.922 kB / 329.1 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.1574, allocations: 19.91 kB / 329.2 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.1578, allocations: 51.89 kB / 329.2 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.1581, allocations: 123.7 kB / 329.3 MB, free: 2.133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.1582, allocations: 29.39 kB / 329.4 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008739/0.1591, allocations: 0.6355 MB / 330 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.1593, allocations: 83.69 kB / 330.1 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.414e-05/0.1594, allocations: 4 kB / 330.1 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.271e-05/0.1595, allocations: 8 kB / 330.1 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.1596, allocations: 75.62 kB / 330.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.1599, allocations: 135 kB / 330.3 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.1604, allocations: 442.8 kB / 330.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1605, allocations: 0 / 330.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1605, allocations: 0 / 330.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.582e-05/0.1605, allocations: 4 kB / 330.7 MB, free: 0.7266 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.00163/0.1622, allocations: 0.8138 MB / 331.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.517e-05/0.1623, allocations: 11.97 kB / 331.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.1624, allocations: 44.47 kB / 331.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004399/0.1628, allocations: 294.1 kB / 331.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.1629, allocations: 4.375 kB / 331.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.1629, allocations: 16.36 kB / 331.9 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.1634, allocations: 165.9 kB / 332.1 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.1634, allocations: 4 kB / 332.1 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.442e-05/0.1634, allocations: 15.92 kB / 332.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.1634, allocations: 0 / 332.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.1636, allocations: 87.89 kB / 332.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009013/0.1645, allocations: 0.4887 MB / 332.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.1648, allocations: 130.5 kB / 332.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.165, allocations: 108.9 kB / 332.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.1651, allocations: 7.969 kB / 332.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005467/0.1656, allocations: 242.6 kB / 333.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.1656, allocations: 0 / 333.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.00111/0.1668, allocations: 0.607 MB / 333.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.1669, allocations: 203.8 kB / 334 MB, free: 13.21 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008022/0.1677, allocations: 0.564 MB / 334.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.1678, allocations: 29.7 kB / 334.5 MB, free: 12.61 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.552e-05/0.1679, allocations: 113 kB / 334.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.999e-05/0.1679, allocations: 27.7 kB / 334.7 MB, free: 12.47 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.1681, allocations: 105.3 kB / 334.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1682, allocations: 334.8 kB / 335.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.1684, allocations: 79.95 kB / 335.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.1686, allocations: 101.8 kB / 335.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004517/0.169, allocations: 439.8 kB / 335.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1691, allocations: 4.062 kB / 335.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006867/0.1697, allocations: 0.4979 MB / 336.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.1699, allocations: 152.5 kB / 336.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.1699, allocations: 0 / 336.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.1699, allocations: 4 kB / 336.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.568e-05/0.1699, allocations: 0 / 336.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.17, allocations: 4.031 kB / 336.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.1701, allocations: 15.98 kB / 336.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.1703, allocations: 101.3 kB / 336.5 MB, free: 10.5 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: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0004069/0.1707, allocations: 400 kB / 336.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.42e-05/0.1708, allocations: 47.52 kB / 336.9 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.1709, allocations: 67.48 kB / 337 MB, free: 9.949 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1709, allocations: 3.938 kB / 337 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1709, allocations: 0 / 337 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1709, allocations: 4 kB / 337 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.1721, allocations: 0.971 MB / 338 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1721, allocations: 4 kB / 338 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.977e-06/0.1721, allocations: 0 / 338 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1721, allocations: 0 / 338 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.1722, allocations: 19.98 kB / 338 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1722, allocations: 0 / 338 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1722, allocations: 3.938 kB / 338 MB, free: 8.855 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008147/0.173, allocations: 0.6677 MB / 338.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/0.1734, allocations: 256.4 kB / 338.9 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.221e-05/0.1735, allocations: 12 kB / 338.9 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.1736, allocations: 11.98 kB / 338.9 MB, free: 7.848 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.1738, allocations: 59.88 kB / 339 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.1739, allocations: 101.2 kB / 339.1 MB, free: 7.691 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005144/0.1745, allocations: 418.8 kB / 339.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1745, allocations: 0 / 339.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.1748, allocations: 56 kB / 339.6 MB, free: 7.23 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.0001789/0.175, allocations: 119.3 kB / 339.7 MB, free: 7.102 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006928/0.1757, allocations: 0.5321 MB / 340.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1757, allocations: 0 / 340.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004147/0.1761, allocations: 461 kB / 340.7 MB, free: 5.996 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/0.177, allocations: 185.8 kB / 340.8 MB, free: 5.816 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.1784, allocations: 0.8672 MB / 341.7 MB, free: 4.926 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.179, allocations: 0.8146 MB / 342.5 MB, free: 4.086 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.1791, allocations: 12.86 kB / 342.5 MB, free: 4.074 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.1791, allocations: 15.44 kB / 342.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1791, allocations: 0 / 342.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of Templates: time 0.01368/0.1928, allocations: 6.954 MB / 349.5 MB, free: 12.94 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches