Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00158/0.00158, allocations: 111.5 kB / 17.98 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 201.8 kB / 18.92 MB, free: 4.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.453/1.453, allocations: 227.7 MB / 247.4 MB, free: 10.55 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 69.67 kB / 307.4 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1035, allocations: 50.54 MB / 357.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002988/0.1065, allocations: 1.631 MB / 359.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.1084, allocations: 0.8888 MB / 360.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.319e-05/0.1085, allocations: 0 / 360.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.848e-05/0.1086, allocations: 7.922 kB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.591e-05/0.1087, allocations: 11.94 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.109, allocations: 51.89 kB / 360.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.1092, allocations: 175.7 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.1094, allocations: 21.41 kB / 360.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007515/0.1101, allocations: 0.6473 MB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.1103, allocations: 99.67 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.1104, allocations: 8 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.604e-05/0.1104, allocations: 12 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1105, allocations: 79.62 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.1107, allocations: 135 kB / 361.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.1111, allocations: 375.1 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.1111, allocations: 0 / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1111, allocations: 0 / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1111, allocations: 0 / 362 MB, free: 10.14 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.0009231/0.112, allocations: 0.8296 MB / 362.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1121, allocations: 8.031 kB / 362.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.543e-05/0.1122, allocations: 40.47 kB / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.1125, allocations: 294.1 kB / 363.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.1126, allocations: 4.375 kB / 363.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.1126, allocations: 16.31 kB / 363.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003764/0.113, allocations: 177.8 kB / 363.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.113, allocations: 0 / 363.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.113, allocations: 4 kB / 363.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.113, allocations: 0 / 363.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.1132, allocations: 87.95 kB / 363.5 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007693/0.114, allocations: 0.4964 MB / 364 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.1143, allocations: 118.5 kB / 364.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.1145, allocations: 112.9 kB / 364.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.1145, allocations: 4 kB / 364.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004351/0.1149, allocations: 238.6 kB / 364.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.115, allocations: 0 / 364.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001099/0.1161, allocations: 0.6147 MB / 365.1 MB, free: 6.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.1162, allocations: 191.9 kB / 365.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000773/0.117, allocations: 0.5678 MB / 365.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.117, allocations: 29.7 kB / 365.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1172, allocations: 121.1 kB / 366 MB, free: 5.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.08e-05/0.1172, allocations: 39.53 kB / 366 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.1174, allocations: 93.41 kB / 366.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1176, allocations: 330.8 kB / 366.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.1178, allocations: 79.95 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.118, allocations: 100.2 kB / 366.6 MB, free: 5.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004839/0.1184, allocations: 438.8 kB / 367 MB, free: 4.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1185, allocations: 0 / 367 MB, free: 4.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007654/0.1192, allocations: 0.5018 MB / 367.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.1194, allocations: 156.5 kB / 367.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1194, allocations: 0 / 367.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1194, allocations: 0 / 367.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.903e-05/0.1194, allocations: 0 / 367.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.1194, allocations: 4 kB / 367.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.1196, allocations: 11.98 kB / 367.7 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.1197, allocations: 97.39 kB / 367.8 MB, free: 3.93 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.000454/0.1202, allocations: 408 kB / 368.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.7e-05/0.1203, allocations: 43.53 kB / 368.2 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.1204, allocations: 71.42 kB / 368.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1204, allocations: 0 / 368.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1204, allocations: 7.969 kB / 368.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1204, allocations: 4 kB / 368.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1217, allocations: 0.9671 MB / 369.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.1217, allocations: 4 kB / 369.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.659e-06/0.1217, allocations: 0 / 369.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1217, allocations: 0 / 369.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.677e-05/0.1218, allocations: 23.98 kB / 369.3 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1218, allocations: 0 / 369.3 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1218, allocations: 7.875 kB / 369.3 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008967/0.1227, allocations: 0.6557 MB / 370 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003536/0.1231, allocations: 252.3 kB / 370.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.701e-05/0.1232, allocations: 19.94 kB / 370.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.1233, allocations: 15.98 kB / 370.3 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.1235, allocations: 55.88 kB / 370.3 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.1236, allocations: 105.2 kB / 370.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005558/0.1242, allocations: 422.8 kB / 370.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1242, allocations: 0 / 370.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.1245, allocations: 51.91 kB / 370.9 MB, free: 0.6406 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.0001823/0.1247, allocations: 119.2 kB / 371 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1392/0.2639, allocations: 0.5356 MB / 371.5 MB, free: 20.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.2639, allocations: 0 / 371.5 MB, free: 20.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004081/0.2643, allocations: 463.2 kB / 372 MB, free: 20.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009041/0.2653, allocations: 186.8 kB / 372.2 MB, free: 20.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.2665, allocations: 0.916 MB / 373.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.2669, allocations: 0.8233 MB / 373.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.195e-05/0.2669, allocations: 13.59 kB / 373.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2669, allocations: 0 / 373.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of Templates: time 0.007245/0.2741, allocations: 4.295 MB / 378.2 MB, free: 18.82 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches