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.001484/0.001484, allocations: 113 kB / 18.45 MB, free: 4.602 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.002043/0.002043, allocations: 190.9 kB / 21.4 MB, free: 1.664 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.458/1.458, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.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.00159/0.00159, allocations: 51.92 kB / 366.8 MB, free: 352 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1149, allocations: 52.14 MB / 419 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.004061/0.119, allocations: 1.573 MB / 420.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.1222, allocations: 0.8615 MB / 421.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.685e-05/0.1222, allocations: 0 / 421.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.1224, allocations: 15.86 kB / 421.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.1225, allocations: 27.8 kB / 421.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.1228, allocations: 55.88 kB / 421.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003258/0.1232, allocations: 151.7 kB / 421.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.1233, allocations: 21.39 kB / 421.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.1244, allocations: 0.6356 MB / 422.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.1247, allocations: 87.61 kB / 422.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.531e-05/0.1247, allocations: 8 kB / 422.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.1248, allocations: 12 kB / 422.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1249, allocations: 83.62 kB / 422.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.1252, allocations: 123.1 kB / 422.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007247/0.1259, allocations: 458 kB / 423 MB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1259, allocations: 4 kB / 423 MB, free: 7.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1259, allocations: 0 / 423 MB, free: 7.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.1259, allocations: 4 kB / 423 MB, free: 7.988 MB / 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.001284/0.1272, allocations: 0.8255 MB / 423.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1272, allocations: 8.031 kB / 423.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1274, allocations: 48.66 kB / 423.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004813/0.1279, allocations: 298.6 kB / 424.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.1279, allocations: 8.312 kB / 424.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.286e-05/0.1279, allocations: 16.36 kB / 424.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005402/0.1285, allocations: 175.9 kB / 424.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1285, allocations: 0 / 424.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.1285, allocations: 11.92 kB / 424.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1286, allocations: 4 kB / 424.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/0.1289, allocations: 83.95 kB / 424.5 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.1299, allocations: 0.4926 MB / 425 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.1301, allocations: 98.53 kB / 425.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.1303, allocations: 88.88 kB / 425.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.1303, allocations: 3.938 kB / 425.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004264/0.1308, allocations: 250.5 kB / 425.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.1308, allocations: 0 / 425.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001097/0.1319, allocations: 0.615 MB / 426.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.132, allocations: 195.9 kB / 426.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007357/0.1327, allocations: 0.5679 MB / 426.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.1328, allocations: 29.7 kB / 426.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.64e-05/0.1329, allocations: 117.1 kB / 427 MB, free: 3.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.188e-05/0.1329, allocations: 27.95 kB / 427 MB, free: 3.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.1331, allocations: 101.5 kB / 427.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1332, allocations: 330.8 kB / 427.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.1334, allocations: 83.89 kB / 427.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1336, allocations: 101.7 kB / 427.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004831/0.1341, allocations: 432.9 kB / 428 MB, free: 2.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.1341, allocations: 3.984 kB / 428 MB, free: 2.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007656/0.1349, allocations: 0.498 MB / 428.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.135, allocations: 154.5 kB / 428.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.135, allocations: 4 kB / 428.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.135, allocations: 3.938 kB / 428.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.919e-05/0.135, allocations: 0 / 428.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.135, allocations: 4.031 kB / 428.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.1352, allocations: 15.98 kB / 428.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.1353, allocations: 101.3 kB / 428.8 MB, free: 1.777 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.0004041/0.1357, allocations: 400 kB / 429.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.015e-05/0.1358, allocations: 47.72 kB / 429.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.1359, allocations: 75.45 kB / 429.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1359, allocations: 3.984 kB / 429.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1359, allocations: 0 / 429.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.1359, allocations: 4 kB / 429.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.1371, allocations: 0.9668 MB / 430.3 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1371, allocations: 128 / 430.3 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.163e-06/0.1371, allocations: 4 kB / 430.3 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1372, allocations: 0 / 430.3 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.1372, allocations: 23.98 kB / 430.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1372, allocations: 0 / 430.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.1372, allocations: 3.938 kB / 430.3 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009018/0.1381, allocations: 0.6675 MB / 431 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.1385, allocations: 256.6 kB / 431.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/0.1385, allocations: 12 kB / 431.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.1387, allocations: 15.98 kB / 431.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.1388, allocations: 59.81 kB / 431.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.1389, allocations: 97.3 kB / 431.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005355/0.1395, allocations: 422.8 kB / 431.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1395, allocations: 0 / 431.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.1398, allocations: 48 kB / 431.9 MB, free: 14.52 MB / 366.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.0001472/0.1399, allocations: 123.1 kB / 432 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006508/0.1406, allocations: 484.9 kB / 432.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1406, allocations: 3.938 kB / 432.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000444/0.141, allocations: 388.9 kB / 432.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008731/0.1419, allocations: 181 kB / 433 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.1433, allocations: 0.8119 MB / 433.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.1438, allocations: 0.8219 MB / 434.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.1438, allocations: 15.44 kB / 434.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1438, allocations: 0 / 434.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of Templates: time 0.006808/0.1506, allocations: 4.299 MB / 439 MB, free: 7.145 MB / 366.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.195182430092245]