Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 113.7 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 189.6 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2858, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00264/0.2885, allocations: 1.556 MB / 403 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.2904, allocations: 0.8715 MB / 403.8 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.957e-05/0.2904, allocations: 0 / 403.8 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.132e-05/0.2905, allocations: 11.86 kB / 403.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.872e-05/0.2906, allocations: 31.78 kB / 403.9 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.2909, allocations: 51.89 kB / 403.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002155/0.2911, allocations: 167.7 kB / 404.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.2912, allocations: 29.38 kB / 404.1 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005947/0.2918, allocations: 0.6356 MB / 404.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.292, allocations: 79.69 kB / 404.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.247e-05/0.2921, allocations: 12 kB / 404.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.372e-05/0.2921, allocations: 12 kB / 404.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.2922, allocations: 83.62 kB / 404.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.2923, allocations: 131 kB / 405.1 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003831/0.2927, allocations: 454.4 kB / 405.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2927, allocations: 0 / 405.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2927, allocations: 0 / 405.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2927, allocations: 4 kB / 405.5 MB, free: 4.73 MB / 318.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.0008061/0.2936, allocations: 0.8111 MB / 406.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.2936, allocations: 11.97 kB / 406.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.013e-05/0.2937, allocations: 48.38 kB / 406.4 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.294, allocations: 290.2 kB / 406.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.294, allocations: 8.312 kB / 406.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.2941, allocations: 8.375 kB / 406.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003788/0.2944, allocations: 177.8 kB / 406.9 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.2945, allocations: 0 / 406.9 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.2945, allocations: 4 kB / 406.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.2945, allocations: 4 kB / 406.9 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.2947, allocations: 83.95 kB / 406.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007117/0.2954, allocations: 0.5003 MB / 407.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.2956, allocations: 122.5 kB / 407.6 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.2958, allocations: 112.9 kB / 407.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.2958, allocations: 3.938 kB / 407.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000396/0.2962, allocations: 245.4 kB / 407.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.2963, allocations: 4 kB / 407.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009257/0.2972, allocations: 0.6147 MB / 408.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.969e-05/0.2973, allocations: 195.9 kB / 408.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006336/0.2979, allocations: 0.5601 MB / 409.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.298, allocations: 33.64 kB / 409.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.2e-05/0.2981, allocations: 125 kB / 409.4 MB, free: 496 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.104e-05/0.2981, allocations: 23.72 kB / 409.5 MB, free: 472 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.2982, allocations: 93.41 kB / 409.6 MB, free: 372 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.2984, allocations: 338.8 kB / 409.9 MB, free: 24 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.2986, allocations: 80.05 kB / 410 MB, free: 15.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.2987, allocations: 97.66 kB / 410.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003723/0.2991, allocations: 433.4 kB / 410.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2991, allocations: 4 kB / 410.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000637/0.2998, allocations: 0.5018 MB / 411 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.178e-05/0.2999, allocations: 156.5 kB / 411.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2999, allocations: 7.969 kB / 411.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.2999, allocations: 0 / 411.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.395e-05/0.2999, allocations: 4.109 kB / 411.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.2999, allocations: 3.938 kB / 411.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.3001, allocations: 19.88 kB / 411.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.57e-05/0.3002, allocations: 97.31 kB / 411.3 MB, free: 14.5 MB / 334.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.0003457/0.3005, allocations: 400 kB / 411.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/0.3006, allocations: 43.53 kB / 411.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.551e-05/0.3007, allocations: 75.45 kB / 411.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.3007, allocations: 4 kB / 411.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3007, allocations: 0 / 411.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.3007, allocations: 0 / 411.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.3018, allocations: 0.9517 MB / 412.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3018, allocations: 0 / 412.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.242e-06/0.3018, allocations: 3.938 kB / 412.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.3019, allocations: 7.938 kB / 412.7 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/0.3019, allocations: 19.98 kB / 412.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3019, allocations: 0 / 412.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3019, allocations: 12.06 kB / 412.8 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000849/0.3028, allocations: 0.6596 MB / 413.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.3031, allocations: 256.3 kB / 413.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.78e-05/0.3032, allocations: 15.98 kB / 413.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.3033, allocations: 8 kB / 413.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.3035, allocations: 59.81 kB / 413.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.189e-05/0.3036, allocations: 97.3 kB / 413.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00046/0.304, allocations: 426.8 kB / 414.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.304, allocations: 0 / 414.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.3043, allocations: 55.88 kB / 414.3 MB, free: 11.25 MB / 334.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.0001548/0.3045, allocations: 119.1 kB / 414.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005939/0.3051, allocations: 0.5391 MB / 415 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3051, allocations: 0 / 415 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003781/0.3055, allocations: 468.9 kB / 415.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008068/0.3063, allocations: 191.7 kB / 415.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3075, allocations: 0.7892 MB / 416.4 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.3079, allocations: 0.8297 MB / 417.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.568e-05/0.3079, allocations: 15.44 kB / 417.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.308, allocations: 0 / 417.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of Templates: time 0.005794/0.3138, allocations: 4.29 MB / 421.6 MB, free: 3.758 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches