Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_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.001768/0.001768, allocations: 108 kB / 17.16 MB, free: 6.082 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.001964/0.001964, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.408/2.408, allocations: 222.9 MB / 241.8 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 50.97 kB / 300.6 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1618, allocations: 49.44 MB / 350.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.005118/0.167, allocations: 1.61 MB / 351.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003224/0.1703, allocations: 0.8849 MB / 352.5 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.1704, allocations: 0 / 352.5 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.1706, allocations: 15.92 kB / 352.6 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.1708, allocations: 15.92 kB / 352.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.1713, allocations: 53.64 kB / 352.6 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.1715, allocations: 131.7 kB / 352.8 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.1717, allocations: 17.41 kB / 352.8 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.1729, allocations: 0.6356 MB / 353.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.1731, allocations: 91.61 kB / 353.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.394e-05/0.1732, allocations: 4 kB / 353.5 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.827e-05/0.1733, allocations: 8 kB / 353.5 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.1735, allocations: 75.64 kB / 353.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002566/0.1738, allocations: 131 kB / 353.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005835/0.1744, allocations: 379.1 kB / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1744, allocations: 0 / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1744, allocations: 0 / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.1744, allocations: 0 / 354.1 MB, free: 0.7812 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.001574/0.176, allocations: 0.8104 MB / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.275e-05/0.1761, allocations: 8.031 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.1763, allocations: 48.41 kB / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005385/0.1768, allocations: 294.1 kB / 355.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.1769, allocations: 8.312 kB / 355.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.177, allocations: 12.38 kB / 355.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006148/0.1776, allocations: 177.4 kB / 355.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1776, allocations: 0 / 355.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.905e-05/0.1777, allocations: 4 kB / 355.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1777, allocations: 3.938 kB / 355.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.178, allocations: 87.95 kB / 355.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.1793, allocations: 0.4965 MB / 356 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000383/0.1797, allocations: 130.5 kB / 356.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003226/0.18, allocations: 116.8 kB / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.1801, allocations: 4 kB / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006493/0.1807, allocations: 242.6 kB / 356.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.685e-06/0.1808, allocations: 0 / 356.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.00169/0.1825, allocations: 0.6108 MB / 357.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000158/0.1826, allocations: 195.9 kB / 357.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.184, allocations: 0.5639 MB / 357.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.588e-05/0.184, allocations: 33.7 kB / 357.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1842, allocations: 113.1 kB / 358 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.63e-05/0.1842, allocations: 23.72 kB / 358 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.1845, allocations: 101.3 kB / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.1847, allocations: 338.8 kB / 358.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/0.185, allocations: 83.89 kB / 358.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.1853, allocations: 97.67 kB / 358.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000701/0.186, allocations: 438.8 kB / 359.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.186, allocations: 0 / 359.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001191/0.1872, allocations: 0.4979 MB / 359.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001471/0.1874, allocations: 156.5 kB / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1874, allocations: 0 / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.1875, allocations: 4 kB / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.892e-05/0.1875, allocations: 0 / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1875, allocations: 0 / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.1879, allocations: 24.08 kB / 359.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/0.188, allocations: 101.3 kB / 359.9 MB, free: 10.54 MB / 302.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.0006477/0.1887, allocations: 404 kB / 360.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.1888, allocations: 43.53 kB / 360.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.1891, allocations: 71.47 kB / 360.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1891, allocations: 0 / 360.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1891, allocations: 3.938 kB / 360.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1891, allocations: 0 / 360.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00203/0.1911, allocations: 0.9625 MB / 361.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.1912, allocations: 7.984 kB / 361.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.977e-06/0.1912, allocations: 0 / 361.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1912, allocations: 0 / 361.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.1913, allocations: 19.98 kB / 361.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1913, allocations: 0 / 361.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.1913, allocations: 3.938 kB / 361.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.1927, allocations: 0.6672 MB / 362 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000596/0.1934, allocations: 272.2 kB / 362.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.1935, allocations: 12 kB / 362.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.1938, allocations: 8 kB / 362.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/0.1941, allocations: 63.86 kB / 362.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/0.1943, allocations: 97.23 kB / 362.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009399/0.1952, allocations: 418.8 kB / 362.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1952, allocations: 0 / 362.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006218/0.1959, allocations: 55.91 kB / 362.9 MB, free: 7.27 MB / 302.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.0002457/0.1961, allocations: 123.3 kB / 363 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.1972, allocations: 0.536 MB / 363.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1972, allocations: 0 / 363.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000686/0.1979, allocations: 461 kB / 364 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.1993, allocations: 184.2 kB / 364.2 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.2016, allocations: 0.9081 MB / 365.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007528/0.2024, allocations: 0.8146 MB / 365.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.676e-05/0.2025, allocations: 15.38 kB / 366 MB, free: 4.062 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.2025, allocations: 0 / 366 MB, free: 4.062 MB / 302.1 MB Notification: Performance of Templates: time 0.263/0.4655, allocations: 4.266 MB / 370.2 MB, free: 25.11 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches