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.0009852/0.0009852, 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.001117/0.001117, allocations: 160.2 kB / 24.91 MB, free: 8.762 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.9911/0.9911, allocations: 177 MB / 205.2 MB, free: 5.461 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.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.656e-05/1.804e-05, allocations: 2.312 kB / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002077/0.002095, allocations: 1.61 MB / 275 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.003446, allocations: 0.8807 MB / 275.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.348e-05/0.003489, allocations: 0 / 275.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.4e-05/0.003573, allocations: 15.86 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.391e-05/0.003647, allocations: 27.78 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.003859, allocations: 59.86 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.004016, allocations: 147.7 kB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.295e-05/0.004089, allocations: 22.16 kB / 276.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004502/0.004539, allocations: 0.6083 MB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.004652, allocations: 71.75 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.004684, allocations: 12 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.545e-05/0.00471, allocations: 12 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.763e-05/0.004778, allocations: 71.7 kB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.753e-05/0.004845, allocations: 67.67 kB / 277 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.005092, allocations: 358.7 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.005094, allocations: 0 / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.005094, allocations: 0 / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.005099, allocations: 0 / 277.4 MB, free: 13.23 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.0005046/0.005604, allocations: 0.7058 MB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.005635, allocations: 15.98 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.00569, allocations: 32.91 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.005875, allocations: 247.8 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.005891, allocations: 8.375 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.005912, allocations: 12.38 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.006163, allocations: 282.3 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.006171, allocations: 192 / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.006188, allocations: 4.375 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.006192, allocations: 3.938 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.00631, allocations: 196.4 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002779/0.006588, allocations: 236.2 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001271/0.006715, allocations: 207 kB / 279.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.602e-05/0.006811, allocations: 189.4 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-06/0.006816, allocations: 4 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.007033, allocations: 358.7 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.007034, allocations: 0 / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004194/0.007453, allocations: 0.6396 MB / 280.5 MB, free: 9.734 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.027e-05/0.007524, allocations: 199.9 kB / 280.7 MB, free: 9.496 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.007813, allocations: 399.1 kB / 281.1 MB, free: 9.098 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.007837, allocations: 29.7 kB / 281.1 MB, free: 9.062 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/0.007876, allocations: 101.1 kB / 281.2 MB, free: 8.957 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.007909, allocations: 39.81 kB / 281.2 MB, free: 8.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.21e-05/0.007992, allocations: 81.52 kB / 281.3 MB, free: 8.832 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.647e-05/0.008078, allocations: 330.8 kB / 281.6 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.008191, allocations: 184.5 kB / 281.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.008301, allocations: 206.2 kB / 282 MB, free: 8.051 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.008498, allocations: 386.6 kB / 282.4 MB, free: 7.605 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.0085, allocations: 0 / 282.4 MB, free: 7.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002577/0.008757, allocations: 437.6 kB / 282.8 MB, free: 7.113 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/0.008825, allocations: 156.5 kB / 283 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.00883, allocations: 0 / 283 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.008842, allocations: 4 kB / 283 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.384e-05/0.008856, allocations: 0 / 283 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-06/0.008858, allocations: 0 / 283 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.182e-05/0.00894, allocations: 15.98 kB / 283 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.009009, allocations: 101.6 kB / 283.1 MB, free: 6.812 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.0003299/0.009339, allocations: 379.1 kB / 283.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.376e-05/0.009403, allocations: 39.91 kB / 283.5 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.009521, allocations: 55.42 kB / 283.5 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.009524, allocations: 3.984 kB / 283.6 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.009525, allocations: 0 / 283.6 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.009528, allocations: 0 / 283.6 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004651/0.009994, allocations: 0.683 MB / 284.2 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.009996, allocations: 0 / 284.2 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.405e-06/0.01, allocations: 3.938 kB / 284.2 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.01001, allocations: 4 kB / 284.2 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.01003, allocations: 15.98 kB / 284.3 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.01003, allocations: 0 / 284.3 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.01003, allocations: 4 kB / 284.3 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.01044, allocations: 0.5667 MB / 284.8 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.01071, allocations: 147.4 kB / 285 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.508e-05/0.01077, allocations: 12 kB / 285 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.01089, allocations: 20.11 kB / 285 MB, free: 4.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.011, allocations: 35.97 kB / 285 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.049e-05/0.01109, allocations: 89.42 kB / 285.1 MB, free: 4.559 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001662/0.01125, allocations: 180.6 kB / 285.3 MB, free: 4.383 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01125, allocations: 0 / 285.3 MB, free: 4.383 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001823/0.01143, allocations: 51.95 kB / 285.4 MB, free: 4.332 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.0001146/0.01155, allocations: 92.41 kB / 285.4 MB, free: 4.234 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005129/0.01206, allocations: 0.6863 MB / 286.1 MB, free: 3.422 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.01207, allocations: 7.938 kB / 286.1 MB, free: 3.414 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002633/0.01233, allocations: 0.5011 MB / 286.6 MB, free: 2.816 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.01274, allocations: 199.2 kB / 286.8 MB, free: 2.641 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009689/0.0137, allocations: 0.8414 MB / 287.7 MB, free: 1.738 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.288e-05/0.0138, allocations: 111.7 kB / 287.8 MB, free: 1.609 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.407e-05/0.01384, allocations: 12.95 kB / 287.8 MB, free: 1.594 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.01428, allocations: 243.2 kB / 288 MB, free: 1.355 MB / 266.7 MB Notification: Performance of SimCode: time 5.92e-07/0.01428, allocations: 0 / 288 MB, free: 1.355 MB / 266.7 MB Notification: Performance of Templates: time 0.007977/0.02225, allocations: 7.1 MB / 295.1 MB, free: 10.18 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 -s gbode -gbm=radauIIA3 -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.7906495546922088]