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.001086/0.001087, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001083/0.001083, allocations: 196 kB / 18 MB, free: 5.051 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.405/1.405, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 51.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3622, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002991/0.3653, allocations: 1.568 MB / 402.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.3673, allocations: 0.8559 MB / 403.1 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.388e-05/0.3674, allocations: 3.938 kB / 403.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.3675, allocations: 11.92 kB / 403.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.821e-05/0.3676, allocations: 27.78 kB / 403.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003229/0.3679, allocations: 55.88 kB / 403.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.3682, allocations: 163.7 kB / 403.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.3683, allocations: 37.38 kB / 403.4 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006859/0.369, allocations: 0.6239 MB / 404.1 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.3692, allocations: 83.69 kB / 404.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.784e-05/0.3692, allocations: 12 kB / 404.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.496e-05/0.3693, allocations: 8 kB / 404.2 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.3694, allocations: 75.64 kB / 404.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001873/0.3696, allocations: 135 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004356/0.37, allocations: 454 kB / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3701, allocations: 7.984 kB / 404.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3701, allocations: 0 / 404.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.3701, allocations: 0 / 404.8 MB, free: 4.75 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.000838/0.3709, allocations: 0.8255 MB / 405.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.371, allocations: 15.97 kB / 405.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.454e-05/0.3711, allocations: 44.66 kB / 405.7 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.3714, allocations: 290.6 kB / 406 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.3714, allocations: 12.31 kB / 406 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.3715, allocations: 16.36 kB / 406 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003854/0.3719, allocations: 177.2 kB / 406.2 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.3719, allocations: 0 / 406.2 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.3719, allocations: 4 kB / 406.2 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.3719, allocations: 0 / 406.2 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.3721, allocations: 87.89 kB / 406.3 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008115/0.3729, allocations: 0.5043 MB / 406.8 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.3732, allocations: 122.5 kB / 406.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.3734, allocations: 108.9 kB / 407 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.3735, allocations: 4 kB / 407 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000441/0.3739, allocations: 242.6 kB / 407.2 MB, free: 2.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.3739, allocations: 0 / 407.2 MB, free: 2.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001073/0.375, allocations: 0.617 MB / 407.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.3751, allocations: 195.9 kB / 408.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00071/0.3759, allocations: 0.5679 MB / 408.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/0.3759, allocations: 33.7 kB / 408.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.376, allocations: 117.1 kB / 408.8 MB, free: 492 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.3761, allocations: 35.78 kB / 408.8 MB, free: 456 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.3763, allocations: 93.55 kB / 408.9 MB, free: 356 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3764, allocations: 330.8 kB / 409.2 MB, free: 16 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.3766, allocations: 80.03 kB / 409.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.3769, allocations: 97.67 kB / 409.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005548/0.3774, allocations: 442.6 kB / 409.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3774, allocations: 0 / 409.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000787/0.3782, allocations: 0.502 MB / 410.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.3784, allocations: 152.5 kB / 410.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.3784, allocations: 0 / 410.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.3784, allocations: 4 kB / 410.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.704e-05/0.3785, allocations: 4.047 kB / 410.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.3785, allocations: 3.938 kB / 410.5 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.3786, allocations: 16.03 kB / 410.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.3788, allocations: 101.3 kB / 410.6 MB, free: 14.49 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.0003827/0.3791, allocations: 400.1 kB / 411 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.849e-05/0.3792, allocations: 47.72 kB / 411 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.3793, allocations: 75.47 kB / 411.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3793, allocations: 0 / 411.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3794, allocations: 0 / 411.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3794, allocations: 3.984 kB / 411.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.3805, allocations: 0.9594 MB / 412.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3805, allocations: 4 kB / 412.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.842e-06/0.3806, allocations: 0 / 412.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3806, allocations: 3.938 kB / 412.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.792e-05/0.3806, allocations: 19.98 kB / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3806, allocations: 0 / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3806, allocations: 3.938 kB / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009583/0.3816, allocations: 0.6621 MB / 412.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/0.3819, allocations: 264.6 kB / 413 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/0.382, allocations: 15.94 kB / 413 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.3821, allocations: 11.98 kB / 413.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.3823, allocations: 63.88 kB / 413.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/0.3825, allocations: 101.2 kB / 413.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004755/0.383, allocations: 418.8 kB / 413.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.383, allocations: 0 / 413.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003514/0.3833, allocations: 55.94 kB / 413.7 MB, free: 11.23 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.0001663/0.3835, allocations: 127.1 kB / 413.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006579/0.3842, allocations: 0.5243 MB / 414.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3842, allocations: 0 / 414.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004449/0.3846, allocations: 464.9 kB / 414.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008516/0.3855, allocations: 200.7 kB / 415 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.3867, allocations: 0.7518 MB / 415.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.3871, allocations: 0.8259 MB / 416.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.382e-05/0.3872, allocations: 8.875 kB / 416.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.856e-05/0.3872, allocations: 19.44 kB / 416.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3872, allocations: 0 / 416.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of Templates: time 0.01262/0.3999, allocations: 7.417 MB / 424 MB, free: 0.6172 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