Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.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.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer") translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 117.2 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 55.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2535, allocations: 50.56 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Multiplexer): time 0.004067/0.2576, allocations: 2.63 MB / 412.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003209/0.2608, allocations: 1.31 MB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003256/0.2612, allocations: 7.938 kB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003127/0.2615, allocations: 79.3 kB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.2618, allocations: 55.44 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007824/0.2626, allocations: 259.6 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009129/0.2635, allocations: 0.7419 MB / 415 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004306/0.2639, allocations: 267.5 kB / 415.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.2651, allocations: 1.15 MB / 416.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000498/0.2656, allocations: 454.3 kB / 416.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.2658, allocations: 68 kB / 416.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.266, allocations: 71.94 kB / 417 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003184/0.2663, allocations: 247.1 kB / 417.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.2667, allocations: 354 kB / 417.6 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001313/0.2681, allocations: 1.619 MB / 419.2 MB, free: 8.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2681, allocations: 0 / 419.2 MB, free: 8.246 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2681, allocations: 4 kB / 419.2 MB, free: 8.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.2681, allocations: 0 / 419.2 MB, free: 8.242 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001683/0.2698, allocations: 1.278 MB / 420.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2698, allocations: 8.031 kB / 420.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.27, allocations: 80.09 kB / 420.6 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007488/0.2708, allocations: 469.9 kB / 421 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.2708, allocations: 45.69 kB / 421.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.271, allocations: 56.38 kB / 421.1 MB, free: 6.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.2724, allocations: 0.842 MB / 422 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.2724, allocations: 0 / 422 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001104/0.2725, allocations: 24 kB / 422 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.2725, allocations: 12 kB / 422 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.2737, allocations: 0.6337 MB / 422.7 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003024/0.2768, allocations: 1.747 MB / 424.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.2779, allocations: 0.6186 MB / 425 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000576/0.2785, allocations: 310.4 kB / 425.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.2786, allocations: 8.562 kB / 425.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000974/0.2796, allocations: 0.5728 MB / 425.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 3.075e-06/0.2796, allocations: 0 / 425.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.002432/0.2821, allocations: 1.327 MB / 427.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.2822, allocations: 196.4 kB / 427.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000476/0.2827, allocations: 405.3 kB / 427.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.2828, allocations: 49.7 kB / 427.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.283, allocations: 256.7 kB / 428.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.2832, allocations: 134.4 kB / 428.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005091/0.2837, allocations: 318.1 kB / 428.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2839, allocations: 362.7 kB / 428.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006511/0.2846, allocations: 313.1 kB / 429.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006797/0.2852, allocations: 404.3 kB / 429.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.2867, allocations: 0.9603 MB / 430.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.2867, allocations: 4 kB / 430.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001941/0.2887, allocations: 1.157 MB / 431.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.984e-05/0.2888, allocations: 148.5 kB / 431.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.2888, allocations: 4 kB / 431.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.2888, allocations: 11.92 kB / 431.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.2891, allocations: 107.8 kB / 432 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.2891, allocations: 4 kB / 432 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003272/0.2895, allocations: 39.83 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004969/0.29, allocations: 0.558 MB / 432.6 MB, free: 10.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,$PRE.MUX.Or1.auxiliary_n,MUX.d,$PRE.MUX.And4.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,MUX.Or1.auxiliary[3],MUX.Or1.auxiliary[2],MUX.Or1.x[4],MUX.Or1.x[3],MUX.Or1.x[2],MUX.Or1.x[1],$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],Enable.y,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2],D3.y,D2.y,MUX.Not2.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And4.auxiliary[2],MUX.And3.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.x[3],MUX.And2.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.x[1],MUX.And1.auxiliary_n,MUX.And1.auxiliary[2],D1.y,D0.y,CLK.t_i,$PRE.CLK.t_i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 73 * 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.0005822/0.2906, allocations: 465.9 kB / 433.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.2908, allocations: 47.44 kB / 433.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.781e-05/0.2909, allocations: 52.77 kB / 433.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.2909, allocations: 3.984 kB / 433.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2909, allocations: 4 kB / 433.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005548/0.2915, allocations: 256.5 kB / 433.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.2916, allocations: 28 kB / 433.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.2919, allocations: 27.92 kB / 433.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/0.2922, allocations: 160.4 kB / 433.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002087/0.2943, allocations: 1.469 MB / 435.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001807/0.2962, allocations: 1.237 MB / 436.3 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006194/0.2968, allocations: 348.3 kB / 436.7 MB, free: 6.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002517/0.297, allocations: 255.2 kB / 436.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of Backend: time 4.91e-07/0.2971, allocations: 0 / 436.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.2987, allocations: 0.8583 MB / 437.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of SimCode: time 0.003475/0.3022, allocations: 1.944 MB / 439.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of Templates: time 0.03437/0.3366, allocations: 24.67 MB / 464.4 MB, free: 9.363 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/Multiplexer/Multiplexer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches