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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002018/0.002018, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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=5014,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=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 47.92 kB / 371.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2562, allocations: 52.17 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002975/0.2592, allocations: 1.595 MB / 425.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.2611, allocations: 0.8654 MB / 426.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.236e-05/0.2611, allocations: 0 / 426.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.591e-05/0.2612, allocations: 15.86 kB / 426.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.973e-05/0.2613, allocations: 15.86 kB / 426.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.2615, allocations: 71.8 kB / 426.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.2617, allocations: 151.7 kB / 426.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.19e-05/0.2618, allocations: 17.58 kB / 426.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006816/0.2625, allocations: 0.6395 MB / 427.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.2627, allocations: 87.67 kB / 427.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.96e-05/0.2627, allocations: 8 kB / 427.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.577e-05/0.2627, allocations: 12 kB / 427.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.109e-05/0.2628, allocations: 83.62 kB / 427.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.263, allocations: 127 kB / 427.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004413/0.2634, allocations: 459.4 kB / 428 MB, free: 10.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2634, allocations: 4 kB / 428 MB, free: 10.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2634, allocations: 0 / 428 MB, free: 10.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2634, allocations: 0 / 428 MB, free: 10.53 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008989/0.2643, allocations: 0.754 MB / 428.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.2644, allocations: 8.031 kB / 428.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.23e-05/0.2644, allocations: 48.66 kB / 428.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.2648, allocations: 240.7 kB / 429 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.2648, allocations: 8.375 kB / 429.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.2648, allocations: 8.375 kB / 429.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/0.2652, allocations: 169.9 kB / 429.2 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2652, allocations: 3.984 kB / 429.2 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.2652, allocations: 8 kB / 429.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.2652, allocations: 0 / 429.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.2654, allocations: 83.95 kB / 429.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007852/0.2662, allocations: 475.4 kB / 429.8 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001993/0.2664, allocations: 94.53 kB / 429.9 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.2666, allocations: 96.8 kB / 430 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.724e-06/0.2666, allocations: 4 kB / 430 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004154/0.267, allocations: 238.6 kB / 430.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.267, allocations: 0 / 430.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001012/0.268, allocations: 0.6111 MB / 430.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.2681, allocations: 195.9 kB / 431 MB, free: 7.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007338/0.2689, allocations: 0.5757 MB / 431.6 MB, free: 6.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.2689, allocations: 29.7 kB / 431.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.967e-05/0.269, allocations: 117.1 kB / 431.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.936e-05/0.269, allocations: 31.8 kB / 431.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.2692, allocations: 93.55 kB / 431.9 MB, free: 6.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.2694, allocations: 330.8 kB / 432.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.2695, allocations: 79.95 kB / 432.3 MB, free: 5.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.2697, allocations: 101.4 kB / 432.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004597/0.2702, allocations: 446.6 kB / 432.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2702, allocations: 0 / 432.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007129/0.2709, allocations: 0.5058 MB / 433.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001221/0.271, allocations: 152.5 kB / 433.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.271, allocations: 0 / 433.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.271, allocations: 0 / 433.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.147e-05/0.271, allocations: 0 / 433.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2711, allocations: 3.984 kB / 433.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.2712, allocations: 16.03 kB / 433.5 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.2713, allocations: 101.2 kB / 433.6 MB, free: 4.535 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.0004166/0.2717, allocations: 400 kB / 434 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.2718, allocations: 47.72 kB / 434 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.2719, allocations: 71.36 kB / 434.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.2719, allocations: 0 / 434.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2719, allocations: 0 / 434.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2719, allocations: 0 / 434.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.2731, allocations: 0.9429 MB / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2731, allocations: 0 / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.448e-06/0.2731, allocations: 0 / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2731, allocations: 0 / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.2732, allocations: 23.98 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2732, allocations: 0 / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2732, allocations: 3.938 kB / 435 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008555/0.274, allocations: 0.6628 MB / 435.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000433/0.2745, allocations: 225.2 kB / 435.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.629e-05/0.2745, allocations: 12 kB / 435.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.2747, allocations: 19.92 kB / 436 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.2748, allocations: 55.88 kB / 436 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.2749, allocations: 101.4 kB / 436.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005259/0.2755, allocations: 418.8 kB / 436.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2755, allocations: 0 / 436.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000301/0.2758, allocations: 48 kB / 436.6 MB, free: 1.379 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.0001427/0.2759, allocations: 119.2 kB / 436.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006243/0.2765, allocations: 484.8 kB / 437.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2765, allocations: 0 / 437.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.2769, allocations: 385 kB / 437.5 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008123/0.2777, allocations: 190.5 kB / 437.7 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.279, allocations: 0.8081 MB / 438.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005729/0.2796, allocations: 0.8219 MB / 439.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.2796, allocations: 15.44 kB / 439.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2796, allocations: 0 / 439.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of Templates: time 0.006769/0.2864, allocations: 4.258 MB / 443.6 MB, free: 10.05 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.118648390984163]