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.001253/0.001253, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001494/0.001494, allocations: 209.7 kB / 18.79 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.33/1.33, allocations: 227.3 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 60.84 kB / 306.9 MB, free: 1 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09179, allocations: 50.53 MB / 357.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002893/0.09472, allocations: 1.627 MB / 359.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.09667, allocations: 0.9278 MB / 360 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.409e-05/0.09677, allocations: 0 / 360 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.09693, allocations: 11.92 kB / 360 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.09704, allocations: 19.92 kB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.09734, allocations: 47.89 kB / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001664/0.09751, allocations: 127.7 kB / 360.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.09764, allocations: 29.36 kB / 360.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007274/0.09837, allocations: 0.6317 MB / 360.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.09853, allocations: 91.67 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.232e-05/0.0986, allocations: 8 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.372e-05/0.09864, allocations: 4 kB / 360.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.09876, allocations: 75.69 kB / 361 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.09892, allocations: 127 kB / 361.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003302/0.09925, allocations: 375.1 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.09927, allocations: 0 / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09927, allocations: 0 / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.09929, allocations: 0 / 361.5 MB, free: 10.36 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.0009442/0.1002, allocations: 0.8179 MB / 362.3 MB, free: 9.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.1003, allocations: 16.03 kB / 362.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.832e-05/0.1004, allocations: 40.47 kB / 362.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.1007, allocations: 294.1 kB / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.1007, allocations: 12.36 kB / 362.7 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.1008, allocations: 8.375 kB / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.1011, allocations: 176.9 kB / 362.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.1012, allocations: 0 / 362.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.1012, allocations: 7.984 kB / 362.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.1012, allocations: 0 / 362.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.1014, allocations: 83.95 kB / 363 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007436/0.1022, allocations: 0.4964 MB / 363.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.1024, allocations: 126.5 kB / 363.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.1026, allocations: 108.9 kB / 363.7 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.1026, allocations: 8 kB / 363.7 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/0.103, allocations: 242.6 kB / 363.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.103, allocations: 0 / 363.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009819/0.104, allocations: 0.6108 MB / 364.5 MB, free: 7.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1041, allocations: 195.9 kB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.1048, allocations: 0.5678 MB / 365.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.1048, allocations: 29.7 kB / 365.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.473e-05/0.1049, allocations: 117.1 kB / 365.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/0.105, allocations: 31.56 kB / 365.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.1051, allocations: 101.4 kB / 365.6 MB, free: 5.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1052, allocations: 330.8 kB / 365.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.1054, allocations: 79.95 kB / 366 MB, free: 5.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.1056, allocations: 97.67 kB / 366.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.106, allocations: 438.8 kB / 366.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.106, allocations: 112 / 366.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006738/0.1067, allocations: 0.5017 MB / 367 MB, free: 4.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.944e-05/0.1068, allocations: 148.5 kB / 367.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1068, allocations: 0 / 367.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1068, allocations: 4 kB / 367.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.974e-05/0.1068, allocations: 4 kB / 367.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.1068, allocations: 3.984 kB / 367.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.107, allocations: 16.06 kB / 367.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.1071, allocations: 97.33 kB / 367.3 MB, free: 4.141 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.0003538/0.1075, allocations: 407.9 kB / 367.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.54e-05/0.1076, allocations: 47.52 kB / 367.7 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.704e-05/0.1077, allocations: 71.47 kB / 367.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1077, allocations: 0 / 367.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1077, allocations: 3.938 kB / 367.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1077, allocations: 0 / 367.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.1088, allocations: 0.9707 MB / 368.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1088, allocations: 4 kB / 368.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.919e-06/0.1088, allocations: 0 / 368.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1088, allocations: 3.984 kB / 368.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.1089, allocations: 19.98 kB / 368.8 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.1089, allocations: 3.938 kB / 368.8 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1089, allocations: 3.938 kB / 368.8 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007607/0.1097, allocations: 0.6518 MB / 369.4 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003312/0.11, allocations: 264.3 kB / 369.7 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.1101, allocations: 16 kB / 369.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.1102, allocations: 15.98 kB / 369.7 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.1104, allocations: 55.88 kB / 369.8 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.1105, allocations: 105.2 kB / 369.9 MB, free: 1.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000477/0.111, allocations: 418.8 kB / 370.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.111, allocations: 0 / 370.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000316/0.1113, allocations: 55.91 kB / 370.4 MB, free: 0.8516 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.0001455/0.1115, allocations: 127.3 kB / 370.5 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005981/0.1121, allocations: 0.5399 MB / 371 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1121, allocations: 0 / 371 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.133/0.2451, allocations: 463.4 kB / 371.5 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009596/0.2461, allocations: 173.6 kB / 371.6 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.2474, allocations: 0.9099 MB / 372.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.2477, allocations: 0.8242 MB / 373.4 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.295e-05/0.2478, allocations: 12.48 kB / 373.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2478, allocations: 0 / 373.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of Templates: time 0.007257/0.255, allocations: 4.271 MB / 377.7 MB, free: 18.96 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/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_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches