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.0008334/0.0008331, allocations: 101.3 kB / 17.31 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.001037/0.001037, allocations: 177.5 kB / 18.2 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 2.039/2.039, 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.000523/0.0005232, allocations: 8 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1641, allocations: 47.59 MB / 329 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002535/0.1668, allocations: 1.274 MB / 330.2 MB, free: 2.492 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.1694, allocations: 0.9141 MB / 331.1 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.1696, allocations: 4 kB / 331.1 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.1697, allocations: 7.922 kB / 331.2 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.1699, allocations: 19.84 kB / 331.2 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.1703, allocations: 47.97 kB / 331.2 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002703/0.1706, allocations: 135.6 kB / 331.4 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.1708, allocations: 21.39 kB / 331.4 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.1718, allocations: 0.6239 MB / 332 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.172, allocations: 87.61 kB / 332.1 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.76e-05/0.1721, allocations: 8 kB / 332.1 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.427e-05/0.1721, allocations: 4 kB / 332.1 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.1723, allocations: 67.7 kB / 332.2 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002608/0.1726, allocations: 156.7 kB / 332.3 MB, free: 396 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006901/0.1733, allocations: 442.6 kB / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1733, allocations: 4 kB / 332.8 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.1733, allocations: 0 / 332.8 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.1733, allocations: 0 / 332.8 MB, free: 15.95 MB / 286.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.001537/0.1749, allocations: 0.7361 MB / 333.5 MB, free: 15.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001742/0.1751, allocations: 8.031 kB / 333.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.1752, allocations: 44.47 kB / 333.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005472/0.1758, allocations: 298.1 kB / 333.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.1758, allocations: 4.375 kB / 333.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.281e-05/0.1759, allocations: 8.375 kB / 333.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004825/0.1764, allocations: 181.8 kB / 334 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1764, allocations: 3.938 kB / 334 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.1765, allocations: 4 kB / 334 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.1765, allocations: 4 kB / 334 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002207/0.1767, allocations: 83.95 kB / 334.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.1779, allocations: 0.5042 MB / 334.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/0.1782, allocations: 118.5 kB / 334.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.1784, allocations: 112.9 kB / 334.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.1785, allocations: 0 / 334.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004639/0.1789, allocations: 246.6 kB / 335.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 4.388e-06/0.179, allocations: 112 / 335.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001177/0.1801, allocations: 0.6186 MB / 335.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.1803, allocations: 195.9 kB / 335.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009527/0.1813, allocations: 0.56 MB / 336.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.1813, allocations: 29.7 kB / 336.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1814, allocations: 117.1 kB / 336.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.952e-05/0.1815, allocations: 35.55 kB / 336.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/0.1816, allocations: 29.7 kB / 336.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.1818, allocations: 330.8 kB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.182, allocations: 87.95 kB / 337.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.1822, allocations: 97.47 kB / 337.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004928/0.1827, allocations: 438.6 kB / 337.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1827, allocations: 0 / 337.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008122/0.1835, allocations: 0.4979 MB / 338.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.1837, allocations: 148.5 kB / 338.2 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1837, allocations: 0 / 338.2 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.1837, allocations: 8.031 kB / 338.2 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.136e-05/0.1837, allocations: 3.984 kB / 338.2 MB, free: 9.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.1838, allocations: 0 / 338.2 MB, free: 9.988 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.184, allocations: 16 kB / 338.3 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.1842, allocations: 105.2 kB / 338.4 MB, free: 9.867 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.0005232/0.1847, allocations: 404 kB / 338.8 MB, free: 9.43 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.1848, allocations: 39.53 kB / 338.8 MB, free: 9.391 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.1849, allocations: 71.47 kB / 338.9 MB, free: 9.316 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.1849, allocations: 4 kB / 338.9 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.185, allocations: 4 kB / 338.9 MB, free: 9.309 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.185, allocations: 0 / 338.9 MB, free: 9.309 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001455/0.1864, allocations: 0.9633 MB / 339.8 MB, free: 8.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1864, allocations: 0 / 339.8 MB, free: 8.258 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.267e-06/0.1865, allocations: 3.938 kB / 339.8 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.1865, allocations: 0 / 339.8 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.1865, allocations: 19.98 kB / 339.9 MB, free: 8.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1865, allocations: 8.062 kB / 339.9 MB, free: 8.227 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.1865, allocations: 3.938 kB / 339.9 MB, free: 8.223 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009847/0.1875, allocations: 0.6713 MB / 340.5 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004555/0.188, allocations: 256.4 kB / 340.8 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.532e-05/0.1881, allocations: 4 kB / 340.8 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.1883, allocations: 19.98 kB / 340.8 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.1885, allocations: 59.88 kB / 340.9 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.1886, allocations: 101.2 kB / 341 MB, free: 7.055 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006879/0.1893, allocations: 422.8 kB / 341.4 MB, free: 6.645 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1893, allocations: 0 / 341.4 MB, free: 6.645 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.1897, allocations: 52 kB / 341.4 MB, free: 6.594 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.0002354/0.19, allocations: 119.1 kB / 341.6 MB, free: 6.465 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007736/0.1907, allocations: 0.5282 MB / 342.1 MB, free: 5.875 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1908, allocations: 0 / 342.1 MB, free: 5.875 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005871/0.1914, allocations: 461 kB / 342.5 MB, free: 5.363 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009712/0.1923, allocations: 178.2 kB / 342.7 MB, free: 5.191 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.1942, allocations: 0.8725 MB / 343.6 MB, free: 4.293 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006768/0.1948, allocations: 0.8146 MB / 344.4 MB, free: 3.453 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.195, allocations: 16.81 kB / 344.4 MB, free: 3.434 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/0.195, allocations: 11.44 kB / 344.4 MB, free: 3.422 MB / 286.1 MB Notification: Performance of SimCode: time 1.844e-06/0.195, allocations: 0 / 344.4 MB, free: 3.422 MB / 286.1 MB Notification: Performance of Templates: time 0.01293/0.2079, allocations: 6.708 MB / 351.1 MB, free: 12.55 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