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.001278/0.001278, allocations: 70.03 kB / 21.24 MB, free: 0.5547 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.001272/0.001272, allocations: 153.6 kB / 24.49 MB, free: 3.852 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.501/1.501, allocations: 173.4 MB / 201.1 MB, free: 12.7 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.001642/0.001642, allocations: 47.8 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09681/0.09845, allocations: 52.17 MB / 371.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003733/0.1022, allocations: 1.506 MB / 373.1 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1041, allocations: 0.8245 MB / 373.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.641e-05/0.1041, allocations: 4 kB / 373.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.701e-05/0.1042, allocations: 7.875 kB / 373.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.098e-05/0.1043, allocations: 27.78 kB / 373.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.1046, allocations: 51.88 kB / 374 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.1048, allocations: 163.7 kB / 374.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.805e-05/0.1049, allocations: 13.58 kB / 374.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007141/0.1056, allocations: 0.6434 MB / 374.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.1058, allocations: 79.62 kB / 374.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.298e-05/0.1058, allocations: 12 kB / 374.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.646e-05/0.1059, allocations: 12 kB / 374.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.106, allocations: 79.69 kB / 375 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.1061, allocations: 91.23 kB / 375.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.1066, allocations: 474 kB / 375.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1066, allocations: 0 / 375.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1066, allocations: 4 kB / 375.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1066, allocations: 0 / 375.5 MB, free: 3.344 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.0008822/0.1075, allocations: 0.7463 MB / 376.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1075, allocations: 16.92 kB / 376.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.299e-05/0.1076, allocations: 44.66 kB / 376.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.1079, allocations: 236.7 kB / 376.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.108, allocations: 8.375 kB / 376.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.108, allocations: 8.375 kB / 376.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.1085, allocations: 330.2 kB / 376.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1085, allocations: 0 / 376.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.1085, allocations: 4 kB / 376.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1085, allocations: 0 / 376.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002743/0.1088, allocations: 232.5 kB / 377.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007406/0.1095, allocations: 432.2 kB / 377.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.1098, allocations: 247 kB / 377.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.1101, allocations: 229.4 kB / 378 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.1101, allocations: 0 / 378 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005294/0.1106, allocations: 407.1 kB / 378.4 MB, free: 140 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.1106, allocations: 0 / 378.4 MB, free: 140 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001259/0.1119, allocations: 0.9158 MB / 379.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.112, allocations: 187.9 kB / 379.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007366/0.1128, allocations: 0.5679 MB / 380.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.1128, allocations: 33.7 kB / 380.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.06e-05/0.1129, allocations: 113.1 kB / 380.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.005e-05/0.1129, allocations: 43.75 kB / 380.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.1131, allocations: 97.55 kB / 380.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1132, allocations: 330.8 kB / 380.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.1135, allocations: 228.5 kB / 380.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.1137, allocations: 250.1 kB / 381.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.1142, allocations: 446 kB / 381.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1142, allocations: 0 / 381.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008498/0.1151, allocations: 0.6663 MB / 382.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.1152, allocations: 156.5 kB / 382.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1152, allocations: 3.984 kB / 382.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1152, allocations: 0 / 382.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.136e-05/0.1152, allocations: 4 kB / 382.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1152, allocations: 112 / 382.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.1154, allocations: 15.94 kB / 382.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.1155, allocations: 101.4 kB / 382.6 MB, free: 11.61 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.0004195/0.1159, allocations: 408.2 kB / 383 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-05/0.116, allocations: 47.72 kB / 383 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.1161, allocations: 71.42 kB / 383.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1161, allocations: 0 / 383.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.1161, allocations: 0 / 383.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.1161, allocations: 7.969 kB / 383.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.1174, allocations: 1.03 MB / 384.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1174, allocations: 0 / 384.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-06/0.1174, allocations: 3.938 kB / 384.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1174, allocations: 4 kB / 384.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.1174, allocations: 31.91 kB / 384.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1174, allocations: 0 / 384.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1175, allocations: 3.984 kB / 384.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009669/0.1184, allocations: 0.8243 MB / 385 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004227/0.1188, allocations: 205.6 kB / 385.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.575e-05/0.1189, allocations: 19.98 kB / 385.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1191, allocations: 8 kB / 385.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.1192, allocations: 59.92 kB / 385.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.1193, allocations: 97.44 kB / 385.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005415/0.1199, allocations: 422.8 kB / 385.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1199, allocations: 0 / 385.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.1202, allocations: 51.95 kB / 385.8 MB, free: 8.137 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.0001478/0.1204, allocations: 127.1 kB / 385.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008156/0.1212, allocations: 0.7674 MB / 386.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1212, allocations: 0 / 386.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004737/0.1216, allocations: 0.521 MB / 387.2 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008577/0.1225, allocations: 194.5 kB / 387.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.1239, allocations: 0.9044 MB / 388.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.1242, allocations: 215.6 kB / 388.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.692e-05/0.1242, allocations: 12.97 kB / 388.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.1242, allocations: 16.5 kB / 388.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1242, allocations: 0 / 388.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of Templates: time 0.01267/0.1369, allocations: 8.066 MB / 396.6 MB, free: 12.98 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 -s ida -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: 4.385239407070912]