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.00135/0.00135, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001562/0.001562, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.363/1.363, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001025, allocations: 47.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2574, allocations: 49.45 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002874/0.2603, allocations: 1.551 MB / 403 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.2623, allocations: 0.8637 MB / 403.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.496e-05/0.2624, allocations: 4 kB / 403.8 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.81e-05/0.2625, allocations: 11.92 kB / 403.8 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.898e-05/0.2626, allocations: 23.8 kB / 403.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002707/0.2629, allocations: 55.88 kB / 403.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.2631, allocations: 171.7 kB / 404.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.2633, allocations: 29.38 kB / 404.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000737/0.264, allocations: 0.6395 MB / 404.8 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.2642, allocations: 79.62 kB / 404.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.799e-05/0.2643, allocations: 12 kB / 404.8 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.661e-05/0.2643, allocations: 12 kB / 404.9 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.621e-05/0.2644, allocations: 79.69 kB / 404.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.2646, allocations: 135 kB / 405.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.265, allocations: 450.4 kB / 405.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.265, allocations: 0 / 405.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.265, allocations: 0 / 405.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.265, allocations: 0 / 405.5 MB, free: 4.766 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.0007354/0.2657, allocations: 0.815 MB / 406.3 MB, free: 3.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.2658, allocations: 8.031 kB / 406.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.217e-05/0.2659, allocations: 44.38 kB / 406.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.2661, allocations: 302.1 kB / 406.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.2662, allocations: 4.375 kB / 406.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.2662, allocations: 16.38 kB / 406.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.2665, allocations: 169.9 kB / 406.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2666, allocations: 0 / 406.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.2666, allocations: 7.938 kB / 406.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.2666, allocations: 3.984 kB / 406.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.2668, allocations: 83.95 kB / 407 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006455/0.2674, allocations: 0.4964 MB / 407.4 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.2676, allocations: 122.5 kB / 407.6 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.2678, allocations: 112.9 kB / 407.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.2679, allocations: 0 / 407.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003582/0.2682, allocations: 238.6 kB / 407.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.2682, allocations: 0 / 407.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009206/0.2692, allocations: 0.6289 MB / 408.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.2693, allocations: 199.9 kB / 408.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007671/0.2701, allocations: 0.5562 MB / 409.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/0.2701, allocations: 33.69 kB / 409.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.2702, allocations: 121 kB / 409.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.2703, allocations: 27.66 kB / 409.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.2704, allocations: 97.39 kB / 409.6 MB, free: 400 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.2705, allocations: 330.8 kB / 409.9 MB, free: 60 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.2707, allocations: 80.03 kB / 410 MB, free: 15.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.2709, allocations: 101.7 kB / 410.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.2713, allocations: 430.1 kB / 410.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.2713, allocations: 0 / 410.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006639/0.272, allocations: 0.5058 MB / 411 MB, free: 14.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.901e-05/0.2721, allocations: 156.6 kB / 411.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2721, allocations: 3.938 kB / 411.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.2721, allocations: 0 / 411.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.912e-05/0.2721, allocations: 4.031 kB / 411.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.2721, allocations: 4 kB / 411.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.2723, allocations: 15.89 kB / 411.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.2724, allocations: 101.3 kB / 411.3 MB, free: 14.54 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.0003439/0.2727, allocations: 408 kB / 411.7 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.678e-05/0.2728, allocations: 39.53 kB / 411.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.45e-05/0.2729, allocations: 75.45 kB / 411.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.2729, allocations: 0 / 411.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-06/0.2729, allocations: 4 kB / 411.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2729, allocations: 7.938 kB / 411.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.274, allocations: 0.9594 MB / 412.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.274, allocations: 0 / 412.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-06/0.274, allocations: 0 / 412.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.274, allocations: 0 / 412.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.402e-05/0.274, allocations: 23.98 kB / 412.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.274, allocations: 0 / 412.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.617e-06/0.2741, allocations: 3.938 kB / 412.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007222/0.2748, allocations: 0.6595 MB / 413.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002886/0.2751, allocations: 260.3 kB / 413.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/0.2752, allocations: 12 kB / 413.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.2753, allocations: 15.98 kB / 413.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.2755, allocations: 55.88 kB / 413.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.293e-05/0.2756, allocations: 101.2 kB / 413.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004845/0.276, allocations: 418.8 kB / 414.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2761, allocations: 0 / 414.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003092/0.2764, allocations: 55.94 kB / 414.3 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.0001283/0.2765, allocations: 119.1 kB / 414.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006228/0.2771, allocations: 0.5399 MB / 415 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2771, allocations: 0 / 415 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.2776, allocations: 468.9 kB / 415.5 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.0008486/0.2784, allocations: 191.2 kB / 415.6 MB, free: 9.867 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.2796, allocations: 0.7931 MB / 416.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.28, allocations: 0.8219 MB / 417.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.338e-05/0.2801, allocations: 15.44 kB / 417.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2801, allocations: 0 / 417.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of Templates: time 0.006026/0.2861, allocations: 4.303 MB / 421.6 MB, free: 3.781 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