Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 115.1 kB / 18.45 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.541/1.541, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 47.92 kB / 374.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1094, allocations: 53.34 MB / 427.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003498/0.1129, allocations: 1.589 MB / 429.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002125/0.1151, allocations: 0.9004 MB / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.285e-05/0.1151, allocations: 0 / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.1152, allocations: 15.86 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.1153, allocations: 23.8 kB / 430 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.1156, allocations: 55.86 kB / 430.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.1158, allocations: 151.7 kB / 430.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.116, allocations: 25.38 kB / 430.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007308/0.1167, allocations: 0.6317 MB / 430.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.1169, allocations: 91.59 kB / 431 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.1169, allocations: 12 kB / 431 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.725e-05/0.117, allocations: 16 kB / 431 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.665e-05/0.1171, allocations: 71.7 kB / 431.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.1172, allocations: 135 kB / 431.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004737/0.1177, allocations: 450.1 kB / 431.6 MB, free: 124 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1177, allocations: 0 / 431.6 MB, free: 124 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1177, allocations: 0 / 431.6 MB, free: 124 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1177, allocations: 0 / 431.6 MB, free: 124 kB / 350.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.2394/0.3571, allocations: 0.8264 MB / 432.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.3571, allocations: 9.594 kB / 432.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.3573, allocations: 47.09 kB / 432.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.3577, allocations: 291.3 kB / 432.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.3578, allocations: 6.344 kB / 432.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.006e-05/0.3578, allocations: 12.97 kB / 432.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.3583, allocations: 175.2 kB / 433 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3583, allocations: 0.625 kB / 433 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.3584, allocations: 11.31 kB / 433 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.3584, allocations: 1.75 kB / 433 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.3586, allocations: 86.31 kB / 433.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008919/0.3595, allocations: 0.4971 MB / 433.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.3598, allocations: 101.3 kB / 433.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.3599, allocations: 89.53 kB / 433.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.729e-06/0.36, allocations: 2.438 kB / 433.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004075/0.3604, allocations: 240.5 kB / 434 MB, free: 10.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.464e-06/0.3604, allocations: 0 / 434 MB, free: 10.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001091/0.3615, allocations: 0.6196 MB / 434.6 MB, free: 10 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.3615, allocations: 193 kB / 434.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007705/0.3623, allocations: 0.564 MB / 435.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.3623, allocations: 30.61 kB / 435.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.3624, allocations: 116.5 kB / 435.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.733e-05/0.3624, allocations: 31.83 kB / 435.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/0.3626, allocations: 99.12 kB / 435.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.999e-05/0.3626, allocations: 333.2 kB / 436 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.3628, allocations: 85.19 kB / 436.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.363, allocations: 105 kB / 436.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.3633, allocations: 431.8 kB / 436.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3633, allocations: 0 / 436.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006841/0.364, allocations: 0.5025 MB / 437.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.737e-05/0.3641, allocations: 154.2 kB / 437.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3641, allocations: 1.438 kB / 437.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.3641, allocations: 0 / 437.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.412e-05/0.3641, allocations: 4.375 kB / 437.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.3641, allocations: 1.156 kB / 437.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.3643, allocations: 18.05 kB / 437.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.3644, allocations: 96.89 kB / 437.4 MB, free: 8.402 MB / 350.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.0003502/0.3648, allocations: 404.9 kB / 437.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.743e-05/0.3649, allocations: 53.02 kB / 437.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.365, allocations: 70.92 kB / 437.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.365, allocations: 1.188 kB / 437.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.365, allocations: 1.922 kB / 437.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.365, allocations: 1.062 kB / 437.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.3662, allocations: 0.9603 MB / 438.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3662, allocations: 0 / 438.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-06/0.3662, allocations: 1.969 kB / 438.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3662, allocations: 1.266 kB / 438.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.293e-05/0.3663, allocations: 26.02 kB / 438.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3663, allocations: 0 / 438.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3663, allocations: 3.594 kB / 438.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008479/0.3671, allocations: 0.6657 MB / 439.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.3675, allocations: 263.8 kB / 439.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/0.3676, allocations: 12.19 kB / 439.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.3677, allocations: 11.86 kB / 439.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.3679, allocations: 58 kB / 439.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.3681, allocations: 107.3 kB / 440 MB, free: 6.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005868/0.3687, allocations: 420 kB / 440.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3687, allocations: 0 / 440.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003818/0.369, allocations: 48.84 kB / 440.4 MB, free: 6.578 MB / 350.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.0001765/0.3692, allocations: 119.1 kB / 440.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005977/0.3698, allocations: 486.5 kB / 441 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3698, allocations: 0 / 441 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.3702, allocations: 391.4 kB / 441.4 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009905/0.3711, allocations: 186.5 kB / 441.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.3725, allocations: 0.8091 MB / 442.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.3729, allocations: 0.8185 MB / 443.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/0.373, allocations: 14.47 kB / 443.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.373, allocations: 0 / 443.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of Templates: time 0.008879/0.3818, allocations: 4.303 MB / 447.5 MB, free: 4.016 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.43028633799986]