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.0007286/0.0007287, allocations: 94.17 kB / 17.31 MB, free: 6.535 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.0007889/0.000789, allocations: 173.8 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002302/0.0002302, allocations: 15.92 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07383/0.07408, allocations: 50.41 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001378/0.07549, allocations: 1.274 MB / 353.8 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.07705, allocations: 0.878 MB / 354.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.631e-05/0.0771, allocations: 3.938 kB / 354.6 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.259e-05/0.07717, allocations: 11.92 kB / 354.6 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/0.07725, allocations: 19.86 kB / 354.7 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.07745, allocations: 51.89 kB / 354.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.07759, allocations: 127.7 kB / 354.8 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.833e-05/0.07769, allocations: 25.39 kB / 354.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000584/0.07828, allocations: 0.6278 MB / 355.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.07841, allocations: 91.61 kB / 355.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.522e-05/0.07845, allocations: 4 kB / 355.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.999e-05/0.07849, allocations: 8 kB / 355.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.044e-05/0.07857, allocations: 71.69 kB / 355.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.07871, allocations: 160.7 kB / 355.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.07899, allocations: 363.1 kB / 356.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.079, allocations: 0 / 356.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.079, allocations: 0 / 356.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.07901, allocations: 0 / 356.2 MB, free: 15.98 MB / 302.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.0005919/0.07961, allocations: 0.7286 MB / 356.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.07965, allocations: 12.03 kB / 356.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.219e-05/0.07973, allocations: 44.38 kB / 357 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.07998, allocations: 294.2 kB / 357.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.08001, allocations: 8.375 kB / 357.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.08006, allocations: 16.38 kB / 357.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.08039, allocations: 169.9 kB / 357.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.08041, allocations: 0 / 357.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.08044, allocations: 8 kB / 357.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.08045, allocations: 0 / 357.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.08064, allocations: 87.89 kB / 357.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006256/0.08127, allocations: 0.4965 MB / 358 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.08149, allocations: 126.5 kB / 358.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.08169, allocations: 109 kB / 358.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.0817, allocations: 3.938 kB / 358.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003346/0.08204, allocations: 249.5 kB / 358.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.08206, allocations: 4 kB / 358.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009196/0.08298, allocations: 0.6179 MB / 359.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.08308, allocations: 191.9 kB / 359.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006358/0.08372, allocations: 0.5639 MB / 359.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.08376, allocations: 29.7 kB / 359.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.55e-05/0.08383, allocations: 117.1 kB / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.08388, allocations: 35.59 kB / 360.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.08394, allocations: 25.66 kB / 360.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.845e-05/0.08404, allocations: 338.8 kB / 360.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.08421, allocations: 79.95 kB / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.08439, allocations: 105 kB / 360.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003883/0.08478, allocations: 430.8 kB / 361 MB, free: 10.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.0848, allocations: 0 / 361 MB, free: 10.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006579/0.08546, allocations: 0.5018 MB / 361.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.125e-05/0.08555, allocations: 156.5 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.08556, allocations: 4.031 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.125e-06/0.08558, allocations: 0 / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.425e-05/0.0856, allocations: 0 / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.08561, allocations: 4 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.08578, allocations: 15.98 kB / 361.7 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-05/0.08588, allocations: 97.25 kB / 361.8 MB, free: 9.902 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.000333/0.08622, allocations: 408 kB / 362.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.616e-05/0.08629, allocations: 43.53 kB / 362.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.0864, allocations: 75.47 kB / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.0864, allocations: 0 / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.08641, allocations: 0 / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.08642, allocations: 0 / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.08747, allocations: 0.9672 MB / 363.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.08749, allocations: 4 kB / 363.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.261e-06/0.0875, allocations: 3.984 kB / 363.3 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.0875, allocations: 0 / 363.3 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.08754, allocations: 20 kB / 363.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.08755, allocations: 7.984 kB / 363.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.08756, allocations: 3.938 kB / 363.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007434/0.08831, allocations: 0.6555 MB / 364 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003008/0.08862, allocations: 256.3 kB / 364.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.546e-05/0.08869, allocations: 15.98 kB / 364.2 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.08886, allocations: 12 kB / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.089, allocations: 59.86 kB / 364.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.049e-05/0.0891, allocations: 105.2 kB / 364.4 MB, free: 7.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004746/0.08958, allocations: 426.8 kB / 364.8 MB, free: 6.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08959, allocations: 0 / 364.8 MB, free: 6.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000307/0.0899, allocations: 51.91 kB / 364.9 MB, free: 6.621 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.0001158/0.09003, allocations: 119.3 kB / 365 MB, free: 6.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000567/0.0906, allocations: 0.536 MB / 365.5 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.09061, allocations: 0 / 365.5 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003695/0.09099, allocations: 469 kB / 366 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/0.09183, allocations: 163.2 kB / 366.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.09299, allocations: 0.921 MB / 367.1 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.09339, allocations: 0.8146 MB / 367.9 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.703e-05/0.09342, allocations: 15.44 kB / 367.9 MB, free: 3.414 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09342, allocations: 0 / 367.9 MB, free: 3.414 MB / 302.1 MB Notification: Performance of Templates: time 0.1296/0.223, allocations: 4.259 MB / 372.1 MB, free: 24.46 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