Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008974/0.0008974, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009057/0.0009057, allocations: 164.2 kB / 24.91 MB, free: 8.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9225/0.9225, allocations: 177 MB / 205.2 MB, free: 5.449 MB / 186.7 MB " [Timeout remaining time 179] 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.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 273.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.249e-05/2.402e-05, allocations: 10.25 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002809/0.002833, allocations: 1.562 MB / 274.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.004803, allocations: 0.8769 MB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.968e-05/0.004863, allocations: 4 kB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.004966, allocations: 11.86 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.005068, allocations: 31.78 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.005366, allocations: 51.92 kB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.005618, allocations: 155.6 kB / 276.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.005726, allocations: 30.16 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006824/0.006408, allocations: 0.5966 MB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.006569, allocations: 75.75 kB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.79e-05/0.006617, allocations: 8 kB / 276.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.378e-05/0.006651, allocations: 12 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.895e-05/0.00674, allocations: 79.7 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.006844, allocations: 63.67 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.007218, allocations: 350.8 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.007222, allocations: 4 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.007223, allocations: 0 / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.007229, allocations: 0 / 277.3 MB, free: 13.3 MB / 266.7 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.0007521/0.007981, allocations: 0.7058 MB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.008021, allocations: 15.98 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.063e-05/0.008111, allocations: 36.91 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.008374, allocations: 243.8 kB / 278.3 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.008402, allocations: 8.375 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.008435, allocations: 8.375 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.00881, allocations: 279.3 kB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.00882, allocations: 4.172 kB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.008845, allocations: 8.375 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.008854, allocations: 7.938 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.009011, allocations: 192.4 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004219/0.009433, allocations: 232.2 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.009635, allocations: 211 kB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.009787, allocations: 193.4 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.705e-06/0.009794, allocations: 0 / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.01008, allocations: 355.1 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.984e-06/0.01008, allocations: 3.938 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005819/0.01067, allocations: 0.628 MB / 280.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.283e-05/0.01076, allocations: 199.9 kB / 280.6 MB, free: 9.574 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004468/0.01121, allocations: 403.1 kB / 281 MB, free: 9.172 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.01124, allocations: 29.7 kB / 281 MB, free: 9.137 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.224e-05/0.01129, allocations: 101.1 kB / 281.1 MB, free: 9.031 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.01133, allocations: 35.81 kB / 281.1 MB, free: 8.996 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.01145, allocations: 85.52 kB / 281.2 MB, free: 8.906 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.01156, allocations: 330.8 kB / 281.5 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.01171, allocations: 188.5 kB / 281.7 MB, free: 8.359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.01186, allocations: 205.1 kB / 281.9 MB, free: 8.125 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.01213, allocations: 382.6 kB / 282.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01213, allocations: 4 kB / 282.3 MB, free: 7.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003647/0.01249, allocations: 438.5 kB / 282.7 MB, free: 7.184 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.812e-05/0.01258, allocations: 152.5 kB / 282.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.01259, allocations: 4.062 kB / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.01261, allocations: 0 / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.051e-05/0.01263, allocations: 0 / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.01263, allocations: 7.938 kB / 282.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.01276, allocations: 15.98 kB / 282.9 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.953e-05/0.01286, allocations: 93.53 kB / 283 MB, free: 6.887 MB / 266.7 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.0003404/0.0132, allocations: 379.2 kB / 283.4 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.66e-05/0.01327, allocations: 43.91 kB / 283.4 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.01338, allocations: 55.42 kB / 283.5 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01339, allocations: 0 / 283.5 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.01339, allocations: 3.984 kB / 283.5 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.01339, allocations: 0 / 283.5 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006308/0.01402, allocations: 0.683 MB / 284.1 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.01403, allocations: 0 / 284.1 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.125e-06/0.01403, allocations: 3.938 kB / 284.1 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.01404, allocations: 8 kB / 284.2 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.01406, allocations: 7.984 kB / 284.2 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.01407, allocations: 4 kB / 284.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01407, allocations: 0 / 284.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004297/0.0145, allocations: 0.5706 MB / 284.7 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002878/0.01478, allocations: 143.4 kB / 284.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.01484, allocations: 12 kB / 284.9 MB, free: 4.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.01498, allocations: 15.98 kB / 284.9 MB, free: 4.758 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.01508, allocations: 31.97 kB / 284.9 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.577e-05/0.01518, allocations: 93.36 kB / 285 MB, free: 4.637 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002336/0.01541, allocations: 180.6 kB / 285.2 MB, free: 4.461 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01541, allocations: 0 / 285.2 MB, free: 4.461 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003496/0.01576, allocations: 55.95 kB / 285.3 MB, free: 4.406 MB / 266.7 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.0001365/0.0159, allocations: 100.5 kB / 285.4 MB, free: 4.301 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004262/0.01633, allocations: 0.6863 MB / 286 MB, free: 3.488 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.01633, allocations: 4 kB / 286 MB, free: 3.484 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.01655, allocations: 0.501 MB / 286.5 MB, free: 2.891 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.01698, allocations: 196.9 kB / 286.7 MB, free: 2.715 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008123/0.01779, allocations: 0.8375 MB / 287.6 MB, free: 1.816 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.157e-05/0.01786, allocations: 103.8 kB / 287.7 MB, free: 1.695 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.738e-05/0.0179, allocations: 16.94 kB / 287.7 MB, free: 1.676 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/0.01826, allocations: 247.2 kB / 287.9 MB, free: 1.434 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01826, allocations: 0 / 287.9 MB, free: 1.434 MB / 266.7 MB Notification: Performance of Templates: time 0.01264/0.0309, allocations: 7.099 MB / 295 MB, free: 10.26 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.69946081796661]