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.001433/0.001433, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001331/0.001331, allocations: 191 kB / 18 MB, free: 5.207 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 51.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2828, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002967/0.2858, allocations: 1.562 MB / 402.3 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.2879, allocations: 0.8676 MB / 403.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.2881, allocations: 0 / 403.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.2883, allocations: 15.86 kB / 403.2 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.2885, allocations: 23.86 kB / 403.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004943/0.289, allocations: 51.88 kB / 403.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004497/0.2894, allocations: 171.6 kB / 403.4 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.2897, allocations: 37.38 kB / 403.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009797/0.2907, allocations: 0.6278 MB / 404.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.2909, allocations: 83.64 kB / 404.2 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.154e-05/0.291, allocations: 15.94 kB / 404.2 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.108e-05/0.2911, allocations: 8 kB / 404.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.2912, allocations: 79.67 kB / 404.3 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.2914, allocations: 131 kB / 404.4 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004489/0.2919, allocations: 458.4 kB / 404.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2919, allocations: 0 / 404.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2919, allocations: 4 kB / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.2919, allocations: 0 / 404.8 MB, free: 4.758 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.001004/0.2929, allocations: 0.8111 MB / 405.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.293, allocations: 15.97 kB / 405.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.2931, allocations: 44.38 kB / 405.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.2934, allocations: 290.2 kB / 406 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.2935, allocations: 8.375 kB / 406 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.511e-05/0.2935, allocations: 8.375 kB / 406 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/0.2939, allocations: 177.8 kB / 406.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.294, allocations: 7.984 kB / 406.2 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.294, allocations: 4 kB / 406.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.85e-06/0.294, allocations: 0 / 406.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.2942, allocations: 83.95 kB / 406.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008306/0.2951, allocations: 0.4925 MB / 406.8 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.2953, allocations: 122.5 kB / 406.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.2955, allocations: 112.9 kB / 407 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.2956, allocations: 4 kB / 407 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000439/0.296, allocations: 242.6 kB / 407.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.773e-06/0.296, allocations: 0 / 407.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009993/0.297, allocations: 0.6147 MB / 407.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.2972, allocations: 195.9 kB / 408 MB, free: 1.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007786/0.298, allocations: 0.564 MB / 408.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.298, allocations: 33.7 kB / 408.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.2981, allocations: 121 kB / 408.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.2982, allocations: 35.64 kB / 408.8 MB, free: 496 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.2983, allocations: 93.41 kB / 408.9 MB, free: 396 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.2985, allocations: 334.8 kB / 409.2 MB, free: 52 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.2987, allocations: 79.95 kB / 409.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.2989, allocations: 97.67 kB / 409.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.2994, allocations: 433.5 kB / 409.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2994, allocations: 0 / 409.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007301/0.3001, allocations: 0.5018 MB / 410.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/0.3003, allocations: 156.5 kB / 410.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.3003, allocations: 3.938 kB / 410.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.3003, allocations: 4 kB / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.403e-05/0.3004, allocations: 112 / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.3004, allocations: 3.938 kB / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.3006, allocations: 23.92 kB / 410.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.3007, allocations: 97.3 kB / 410.6 MB, free: 14.53 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.0004112/0.3011, allocations: 404 kB / 411 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.247e-05/0.3012, allocations: 43.53 kB / 411 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.3013, allocations: 71.47 kB / 411.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3013, allocations: 0 / 411.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3014, allocations: 0 / 411.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3014, allocations: 0 / 411.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.3026, allocations: 0.9616 MB / 412.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3026, allocations: 4 kB / 412.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.528e-06/0.3026, allocations: 3.984 kB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3026, allocations: 3.938 kB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.3027, allocations: 27.92 kB / 412.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3027, allocations: 0 / 412.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3027, allocations: 3.938 kB / 412.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007941/0.3035, allocations: 0.6479 MB / 412.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.3039, allocations: 264.3 kB / 413 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.459e-05/0.304, allocations: 12 kB / 413 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.3041, allocations: 8 kB / 413 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.3043, allocations: 63.86 kB / 413.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.3044, allocations: 93.31 kB / 413.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005705/0.305, allocations: 422.8 kB / 413.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.266e-06/0.305, allocations: 0 / 413.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.3053, allocations: 55.88 kB / 413.6 MB, free: 11.29 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.0002128/0.3056, allocations: 127.1 kB / 413.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007179/0.3063, allocations: 0.5399 MB / 414.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3063, allocations: 0 / 414.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005187/0.3068, allocations: 461 kB / 414.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000852/0.3077, allocations: 196.1 kB / 415 MB, free: 9.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.309, allocations: 0.7563 MB / 415.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.3095, allocations: 0.8258 MB / 416.5 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.672e-05/0.3096, allocations: 12.88 kB / 416.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.505e-05/0.3096, allocations: 11.44 kB / 416.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3096, allocations: 0 / 416.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of Templates: time 0.0124/0.322, allocations: 7.422 MB / 424 MB, free: 0.6719 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/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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches