Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 106.8 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 209.8 kB / 18.27 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 63.61 kB / 306.4 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002925/0.1112, allocations: 1.642 MB / 358.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.1131, allocations: 0.8889 MB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.039e-05/0.1131, allocations: 0 / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.1133, allocations: 7.922 kB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.006e-05/0.1134, allocations: 15.88 kB / 359.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.1137, allocations: 51.94 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002211/0.1139, allocations: 163.7 kB / 359.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.114, allocations: 33.38 kB / 359.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006674/0.1147, allocations: 0.6395 MB / 360.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.1149, allocations: 103.6 kB / 360.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.115, allocations: 8 kB / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.695e-05/0.115, allocations: 12 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.572e-05/0.1151, allocations: 75.69 kB / 360.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.1153, allocations: 135 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.1157, allocations: 446.5 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1157, allocations: 3.938 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1157, allocations: 0 / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1157, allocations: 0 / 361.2 MB, free: 10.2 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.0008891/0.1166, allocations: 0.8218 MB / 362 MB, free: 9.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1167, allocations: 12.03 kB / 362 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.1168, allocations: 44.47 kB / 362 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.1171, allocations: 298.1 kB / 362.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.1171, allocations: 8.375 kB / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.1172, allocations: 8.375 kB / 362.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.1176, allocations: 172.4 kB / 362.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1176, allocations: 0 / 362.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.1176, allocations: 8 kB / 362.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1176, allocations: 4 kB / 362.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.1178, allocations: 83.89 kB / 362.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007498/0.1186, allocations: 0.5004 MB / 363.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.1188, allocations: 130.5 kB / 363.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.119, allocations: 112.8 kB / 363.3 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.1191, allocations: 4 kB / 363.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/0.1195, allocations: 242.6 kB / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.1195, allocations: 0 / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009981/0.1205, allocations: 0.6146 MB / 364.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.1207, allocations: 195.9 kB / 364.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006798/0.1214, allocations: 0.56 MB / 365 MB, free: 6.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.1214, allocations: 29.7 kB / 365 MB, free: 6.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.241e-05/0.1215, allocations: 121.1 kB / 365.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.061e-05/0.1216, allocations: 31.61 kB / 365.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.1217, allocations: 93.41 kB / 365.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1218, allocations: 330.8 kB / 365.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.122, allocations: 79.95 kB / 365.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.1222, allocations: 101.6 kB / 365.7 MB, free: 5.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004252/0.1226, allocations: 446.8 kB / 366.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1226, allocations: 4 kB / 366.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007115/0.1234, allocations: 0.5005 MB / 366.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.764e-05/0.1235, allocations: 148.6 kB / 366.8 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1235, allocations: 3.938 kB / 366.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1235, allocations: 3.984 kB / 366.8 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.38e-05/0.1235, allocations: 4 kB / 366.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1235, allocations: 0 / 366.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.1237, allocations: 12 kB / 366.8 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.1238, allocations: 101.3 kB / 366.9 MB, free: 3.973 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.0004054/0.1242, allocations: 403.9 kB / 367.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-05/0.1243, allocations: 43.53 kB / 367.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001201/0.1244, allocations: 71.47 kB / 367.4 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1245, allocations: 8 kB / 367.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1245, allocations: 4 kB / 367.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1245, allocations: 0 / 367.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.1258, allocations: 0.9632 MB / 368.4 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1258, allocations: 4 kB / 368.4 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-06/0.1258, allocations: 4 kB / 368.4 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.1258, allocations: 4 kB / 368.4 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.036e-05/0.1258, allocations: 15.98 kB / 368.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1258, allocations: 4 kB / 368.4 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1259, allocations: 3.938 kB / 368.4 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008621/0.1267, allocations: 0.6556 MB / 369.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003591/0.1271, allocations: 260.3 kB / 369.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.1272, allocations: 16 kB / 369.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.1274, allocations: 11.98 kB / 369.4 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.1275, allocations: 63.88 kB / 369.4 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.1277, allocations: 113.1 kB / 369.6 MB, free: 1.141 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005437/0.1282, allocations: 418.8 kB / 370 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1282, allocations: 0 / 370 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.1286, allocations: 51.91 kB / 370 MB, free: 0.6797 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.0001518/0.1287, allocations: 119.2 kB / 370.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1746/0.3034, allocations: 0.5357 MB / 370.7 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.3035, allocations: 0 / 370.7 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005707/0.304, allocations: 461.7 kB / 371.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.3051, allocations: 191.8 kB / 371.3 MB, free: 20.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.3066, allocations: 0.8673 MB / 372.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.307, allocations: 0.8207 MB / 373 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.181e-05/0.307, allocations: 15.22 kB / 373 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.798e-05/0.3071, allocations: 17.25 kB / 373 MB, free: 19.53 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3071, allocations: 0.9375 kB / 373 MB, free: 19.53 MB / 302.1 MB Notification: Performance of Templates: time 0.0143/0.3214, allocations: 7.148 MB / 380.2 MB, free: 18.2 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches