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.001059/0.001059, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 70.47 kB / 306.9 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.1001, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003212/0.1034, allocations: 1.56 MB / 359 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.1052, allocations: 0.8943 MB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.882e-05/0.1053, allocations: 0 / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.1054, allocations: 15.86 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.422e-05/0.1055, allocations: 23.86 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.1058, allocations: 59.86 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.1061, allocations: 175.5 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.1062, allocations: 25.39 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006802/0.1069, allocations: 0.62 MB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.1071, allocations: 79.7 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.9e-05/0.1072, allocations: 12 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.457e-05/0.1072, allocations: 8 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1074, allocations: 83.61 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.1075, allocations: 127 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004235/0.1079, allocations: 454.4 kB / 361.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.108, allocations: 4 kB / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.108, allocations: 0 / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.108, allocations: 0 / 361.6 MB, free: 9.969 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.000771/0.1088, allocations: 0.814 MB / 362.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1088, allocations: 12.03 kB / 362.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.822e-05/0.1089, allocations: 44.47 kB / 362.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.1092, allocations: 290.1 kB / 362.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1092, allocations: 12.38 kB / 362.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.1093, allocations: 8.375 kB / 362.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.1096, allocations: 180.5 kB / 362.9 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.1096, allocations: 4 kB / 362.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1097, allocations: 7.984 kB / 362.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.1097, allocations: 0 / 362.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.1099, allocations: 87.94 kB / 363 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007167/0.1106, allocations: 0.4925 MB / 363.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.1108, allocations: 122.5 kB / 363.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.1111, allocations: 116.8 kB / 363.8 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.1111, allocations: 0 / 363.8 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003982/0.1115, allocations: 242.6 kB / 364 MB, free: 7.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.1115, allocations: 0 / 364 MB, free: 7.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009433/0.1124, allocations: 0.6148 MB / 364.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.1125, allocations: 191.9 kB / 364.8 MB, free: 6.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006388/0.1132, allocations: 0.5756 MB / 365.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.672e-05/0.1132, allocations: 29.7 kB / 365.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.1133, allocations: 113.1 kB / 365.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.869e-05/0.1134, allocations: 31.61 kB / 365.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.1135, allocations: 101.4 kB / 365.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1137, allocations: 330.8 kB / 366 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.1139, allocations: 83.95 kB / 366.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.114, allocations: 97.67 kB / 366.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.1145, allocations: 438.6 kB / 366.6 MB, free: 4.582 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1145, allocations: 0 / 366.6 MB, free: 4.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006581/0.1151, allocations: 0.5081 MB / 367.1 MB, free: 4.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.114e-05/0.1152, allocations: 148.5 kB / 367.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1153, allocations: 4 kB / 367.2 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.1153, allocations: 4.141 kB / 367.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.427e-05/0.1153, allocations: 3.938 kB / 367.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1153, allocations: 0 / 367.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.1155, allocations: 19.97 kB / 367.3 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.867e-05/0.1156, allocations: 93.3 kB / 367.4 MB, free: 3.742 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.0003533/0.1159, allocations: 396 kB / 367.7 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.055e-05/0.116, allocations: 43.53 kB / 367.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.1161, allocations: 75.45 kB / 367.9 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1161, allocations: 4 kB / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1161, allocations: 0 / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1162, allocations: 0 / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.1173, allocations: 0.9743 MB / 368.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1173, allocations: 0 / 368.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-06/0.1173, allocations: 3.938 kB / 368.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1173, allocations: 128 / 368.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.1173, allocations: 27.98 kB / 368.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1174, allocations: 0 / 368.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.1174, allocations: 3.938 kB / 368.9 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007871/0.1182, allocations: 0.6557 MB / 369.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003092/0.1185, allocations: 260.3 kB / 369.8 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.229e-05/0.1186, allocations: 12 kB / 369.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.1187, allocations: 19.92 kB / 369.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.1189, allocations: 55.88 kB / 369.9 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.872e-05/0.119, allocations: 105.2 kB / 370 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004884/0.1195, allocations: 418.8 kB / 370.4 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1195, allocations: 7.938 kB / 370.4 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000323/0.1198, allocations: 48 kB / 370.4 MB, free: 476 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.0001651/0.12, allocations: 115.2 kB / 370.5 MB, free: 348 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1632/0.2832, allocations: 0.5303 MB / 371.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.2832, allocations: 0.9688 kB / 371.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004229/0.2837, allocations: 460.8 kB / 371.5 MB, free: 20.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000973/0.2846, allocations: 195.9 kB / 371.7 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.286, allocations: 0.7642 MB / 372.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.2864, allocations: 0.8153 MB / 373.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.31e-05/0.2865, allocations: 13.47 kB / 373.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.2865, allocations: 19.69 kB / 373.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2865, allocations: 0 / 373.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of Templates: time 0.01153/0.2981, allocations: 7.425 MB / 380.8 MB, free: 17.87 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