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.001031/0.001031, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.0009414/0.0009414, allocations: 143.2 kB / 24.89 MB, free: 8.277 MB / 18.57 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 0.9199/0.9199, allocations: 173.4 MB / 201.5 MB, free: 9.188 MB / 186.7 MB " [Timeout remaining time 179] 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 1.252e-06/1.252e-06, allocations: 0 / 268.5 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.412e-05/1.537e-05, allocations: 2.312 kB / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001727/0.001742, allocations: 1.544 MB / 270 MB, free: 4.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.003189, allocations: 0.8573 MB / 270.9 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.93e-05/0.003238, allocations: 4 kB / 270.9 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.389e-05/0.003322, allocations: 11.86 kB / 270.9 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.916e-05/0.003401, allocations: 35.73 kB / 270.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.00363, allocations: 55.81 kB / 271 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001625/0.003792, allocations: 155.7 kB / 271.1 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.195e-05/0.003864, allocations: 22.23 kB / 271.1 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004417/0.004306, allocations: 0.5966 MB / 271.7 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.004411, allocations: 75.73 kB / 271.8 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.004441, allocations: 8 kB / 271.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.403e-05/0.004465, allocations: 12 kB / 271.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.588e-05/0.004531, allocations: 79.7 kB / 271.9 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.754e-05/0.004599, allocations: 63.67 kB / 272 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.004842, allocations: 358.7 kB / 272.3 MB, free: 2.297 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.004844, allocations: 0 / 272.3 MB, free: 2.297 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.004845, allocations: 4 kB / 272.3 MB, free: 2.293 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.586e-06/0.004849, allocations: 0 / 272.3 MB, free: 2.293 MB / 250.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.0004763/0.005325, allocations: 0.7019 MB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.005354, allocations: 8.922 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.005409, allocations: 40.89 kB / 273.1 MB, free: 1.488 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.005585, allocations: 227.9 kB / 273.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.005602, allocations: 12.38 kB / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.005623, allocations: 8.375 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.005863, allocations: 287.3 kB / 273.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.81e-06/0.005869, allocations: 192 / 273.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.005886, allocations: 8.375 kB / 273.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.005892, allocations: 7.938 kB / 273.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.726e-05/0.005989, allocations: 192.4 kB / 273.8 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.006276, allocations: 232.1 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.006405, allocations: 207 kB / 274.2 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.006515, allocations: 197.4 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.959e-06/0.00652, allocations: 4 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.006709, allocations: 362.5 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.00671, allocations: 0 / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.000369/0.007079, allocations: 0.6319 MB / 275.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.007141, allocations: 191.9 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.007423, allocations: 395.1 kB / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.007447, allocations: 33.7 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.889e-05/0.007486, allocations: 109 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.007513, allocations: 27.78 kB / 276.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/0.007588, allocations: 89.48 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.126e-05/0.00766, allocations: 330.8 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.466e-05/0.007754, allocations: 184.5 kB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.944e-05/0.007854, allocations: 202.2 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.008167, allocations: 394 kB / 277.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.00817, allocations: 0 / 277.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002404/0.00841, allocations: 438.6 kB / 277.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.846e-05/0.008468, allocations: 148.5 kB / 277.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.008473, allocations: 4 kB / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.759e-06/0.008482, allocations: 4.031 kB / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.493e-05/0.008497, allocations: 0 / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.0085, allocations: 3.938 kB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.405e-05/0.008584, allocations: 20.09 kB / 277.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.334e-05/0.008647, allocations: 85.44 kB / 278 MB, free: 11.9 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.0002272/0.008874, allocations: 375.2 kB / 278.4 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.504e-05/0.00892, allocations: 47.89 kB / 278.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.593e-05/0.008995, allocations: 67.39 kB / 278.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.008998, allocations: 0 / 278.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.009, allocations: 4 kB / 278.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.009002, allocations: 0 / 278.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/0.009428, allocations: 0.6792 MB / 279.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.00943, allocations: 0 / 279.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-06/0.009434, allocations: 3.938 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.009437, allocations: 4 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.009454, allocations: 7.984 kB / 279.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.009456, allocations: 3.938 kB / 279.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.009457, allocations: 4 kB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002819/0.009739, allocations: 0.559 MB / 279.8 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.009922, allocations: 159.3 kB / 279.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.00996, allocations: 12 kB / 279.9 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.639e-05/0.01004, allocations: 15.98 kB / 279.9 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.01011, allocations: 31.97 kB / 280 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.972e-05/0.01017, allocations: 93.47 kB / 280.1 MB, free: 9.637 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001486/0.01031, allocations: 176.6 kB / 280.2 MB, free: 9.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01031, allocations: 0 / 280.2 MB, free: 9.465 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000172/0.01049, allocations: 52 kB / 280.3 MB, free: 9.414 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 7.825e-05/0.01057, allocations: 92.38 kB / 280.4 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003387/0.0109, allocations: 0.7057 MB / 281.1 MB, free: 8.484 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.01091, allocations: 4 kB / 281.1 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.01113, allocations: 497.2 kB / 281.6 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.01152, allocations: 207.5 kB / 281.8 MB, free: 7.719 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007355/0.01225, allocations: 0.8414 MB / 282.6 MB, free: 6.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.005e-05/0.01232, allocations: 103.8 kB / 282.7 MB, free: 6.699 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.54e-05/0.01237, allocations: 12.97 kB / 282.7 MB, free: 6.684 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.01272, allocations: 239.4 kB / 283 MB, free: 6.449 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01272, allocations: 4 kB / 283 MB, free: 6.445 MB / 266.7 MB Notification: Performance of Templates: time 0.00745/0.02017, allocations: 7.106 MB / 290.1 MB, free: 15.28 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.4662962588481605]