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.001372/0.001372, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002028/0.002028, allocations: 207.8 kB / 19.25 MB, free: 3.941 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.518/1.518, allocations: 227.7 MB / 247.7 MB, free: 10.42 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.001922/0.001922, allocations: 65.66 kB / 307.9 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1091, allocations: 50.54 MB / 358.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002943/0.1121, allocations: 1.567 MB / 360 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.1142, allocations: 0.898 MB / 360.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.747e-05/0.1143, allocations: 0 / 360.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.1144, allocations: 15.86 kB / 360.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.069e-05/0.1145, allocations: 15.81 kB / 360.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.1148, allocations: 63.86 kB / 361 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00024/0.1151, allocations: 167.7 kB / 361.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.1152, allocations: 29.39 kB / 361.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007008/0.1159, allocations: 0.6239 MB / 361.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.116, allocations: 79.62 kB / 361.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.576e-05/0.1161, allocations: 12 kB / 361.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.816e-05/0.1162, allocations: 12 kB / 361.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.1163, allocations: 75.69 kB / 362 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.1165, allocations: 135 kB / 362.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004528/0.1169, allocations: 446.5 kB / 362.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1169, allocations: 0 / 362.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1169, allocations: 0 / 362.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1169, allocations: 0 / 362.5 MB, free: 9.836 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.0009429/0.1179, allocations: 0.8218 MB / 363.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.1179, allocations: 12.03 kB / 363.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.401e-05/0.118, allocations: 40.47 kB / 363.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.1184, allocations: 298.1 kB / 363.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.1184, allocations: 8.375 kB / 363.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.1185, allocations: 12.38 kB / 363.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.1189, allocations: 169.9 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1189, allocations: 0 / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.1189, allocations: 4 kB / 363.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.119, allocations: 4 kB / 363.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.1192, allocations: 91.88 kB / 364 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007828/0.1199, allocations: 0.4887 MB / 364.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.1202, allocations: 126.5 kB / 364.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002093/0.1204, allocations: 112.9 kB / 364.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.1204, allocations: 0 / 364.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004567/0.1209, allocations: 242.6 kB / 364.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.1209, allocations: 0 / 364.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001058/0.122, allocations: 0.6218 MB / 365.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.1221, allocations: 203.8 kB / 365.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007784/0.1229, allocations: 0.5678 MB / 366.3 MB, free: 5.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.123, allocations: 29.7 kB / 366.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.1231, allocations: 117.1 kB / 366.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.1231, allocations: 27.62 kB / 366.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.1233, allocations: 97.39 kB / 366.6 MB, free: 5.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1235, allocations: 330.8 kB / 366.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1236, allocations: 79.95 kB / 367 MB, free: 5.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1238, allocations: 101.6 kB / 367.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.1243, allocations: 441.6 kB / 367.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1243, allocations: 0 / 367.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007305/0.1251, allocations: 0.5057 MB / 368 MB, free: 3.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.1252, allocations: 148.5 kB / 368.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1252, allocations: 112 / 368.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.1252, allocations: 3.938 kB / 368.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.054e-05/0.1253, allocations: 0 / 368.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.1253, allocations: 4 kB / 368.2 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.1254, allocations: 16.02 kB / 368.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.1255, allocations: 97.3 kB / 368.3 MB, free: 3.609 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.000407/0.126, allocations: 400 kB / 368.7 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.126, allocations: 39.53 kB / 368.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.1262, allocations: 75.47 kB / 368.8 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1262, allocations: 0 / 368.8 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1262, allocations: 64 / 368.8 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.1262, allocations: 8 kB / 368.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.1275, allocations: 0.9749 MB / 369.8 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1275, allocations: 3.938 kB / 369.8 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.489e-06/0.1275, allocations: 0 / 369.8 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1275, allocations: 0 / 369.8 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.499e-05/0.1276, allocations: 19.98 kB / 369.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1276, allocations: 0 / 369.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1276, allocations: 3.938 kB / 369.8 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008599/0.1285, allocations: 0.6556 MB / 370.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003526/0.1288, allocations: 264.3 kB / 370.7 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.597e-05/0.1289, allocations: 12 kB / 370.7 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.1291, allocations: 15.98 kB / 370.8 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.1292, allocations: 59.88 kB / 370.8 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.1293, allocations: 101.2 kB / 370.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005385/0.1299, allocations: 422.8 kB / 371.3 MB, free: 392 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1299, allocations: 0 / 371.3 MB, free: 392 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.1302, allocations: 56 kB / 371.4 MB, free: 336 kB / 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.0001566/0.1304, allocations: 115.2 kB / 371.5 MB, free: 208 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1473/0.2777, allocations: 0.533 MB / 372 MB, free: 21.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.2778, allocations: 0 / 372 MB, free: 21.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004251/0.2782, allocations: 463.2 kB / 372.5 MB, free: 20.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000995/0.2792, allocations: 188.1 kB / 372.7 MB, free: 20.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.2807, allocations: 0.8139 MB / 373.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.2811, allocations: 0.8176 MB / 374.3 MB, free: 19.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.2812, allocations: 13.91 kB / 374.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2812, allocations: 0 / 374.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of Templates: time 0.008815/0.29, allocations: 4.29 MB / 378.6 MB, free: 19.14 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