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.0009872/0.0009872, 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.001081/0.001081, allocations: 142.1 kB / 24.89 MB, free: 8.777 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 1.003/1.003, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.222e-06/1.222e-06, allocations: 0 / 268.5 MB, free: 5.98 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.692e-05/1.814e-05, allocations: 2.312 kB / 268.5 MB, free: 5.977 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001941/0.001959, allocations: 1.587 MB / 270.1 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.003334, allocations: 0.8535 MB / 271 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.403e-05/0.003388, allocations: 0 / 271 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.314e-05/0.003481, allocations: 15.86 kB / 271 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.324e-05/0.003564, allocations: 31.73 kB / 271 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.003794, allocations: 55.81 kB / 271.1 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.003949, allocations: 159.6 kB / 271.2 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.721e-05/0.004026, allocations: 22.23 kB / 271.2 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004529/0.004479, allocations: 0.5928 MB / 271.8 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.004596, allocations: 75.73 kB / 271.9 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.004627, allocations: 11.94 kB / 271.9 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.493e-05/0.004652, allocations: 12 kB / 271.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.37e-05/0.004716, allocations: 83.7 kB / 272 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.331e-05/0.004779, allocations: 59.73 kB / 272.1 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.005022, allocations: 358.7 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453e-06/0.005023, allocations: 0 / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.005024, allocations: 3.938 kB / 272.4 MB, free: 2.043 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.005027, allocations: 0 / 272.4 MB, free: 2.043 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.0004687/0.005496, allocations: 0.7019 MB / 273.1 MB, free: 1.285 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.005529, allocations: 8.922 kB / 273.1 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.668e-05/0.005586, allocations: 36.91 kB / 273.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.005761, allocations: 236 kB / 273.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.005776, allocations: 12.38 kB / 273.4 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.0058, allocations: 8.375 kB / 273.4 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.006052, allocations: 279.3 kB / 273.7 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.006057, allocations: 4.125 kB / 273.7 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.006074, allocations: 8.375 kB / 273.7 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.00608, allocations: 7.938 kB / 273.7 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.376e-05/0.006173, allocations: 188.5 kB / 273.9 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002782/0.006452, allocations: 232.1 kB / 274.1 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.006588, allocations: 215 kB / 274.3 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.006688, allocations: 201.4 kB / 274.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.006694, allocations: 0 / 274.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.006892, allocations: 359 kB / 274.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.006893, allocations: 0 / 274.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003889/0.007282, allocations: 0.6315 MB / 275.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.007349, allocations: 195.9 kB / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.007619, allocations: 399.1 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.007639, allocations: 29.7 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.799e-05/0.007677, allocations: 113 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.007704, allocations: 27.83 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/0.00778, allocations: 85.47 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.912e-05/0.007849, allocations: 330.8 kB / 276.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.501e-05/0.007944, allocations: 184.5 kB / 276.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.158e-05/0.008036, allocations: 205.8 kB / 277 MB, free: 12.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.00821, allocations: 398.6 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.008212, allocations: 0 / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002253/0.008437, allocations: 438.6 kB / 277.9 MB, free: 11.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.796e-05/0.008495, allocations: 152.5 kB / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.008499, allocations: 0 / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.008507, allocations: 3.938 kB / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.631e-05/0.008524, allocations: 0 / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-06/0.008526, allocations: 4 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.016e-05/0.008606, allocations: 19.98 kB / 278 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.155e-05/0.008668, allocations: 81.5 kB / 278.1 MB, free: 11.64 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.000216/0.008884, allocations: 375.1 kB / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.252e-05/0.008926, allocations: 43.91 kB / 278.5 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.315e-05/0.009, allocations: 67.34 kB / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.009001, allocations: 0 / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.009003, allocations: 4 kB / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.009006, allocations: 0 / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003981/0.009404, allocations: 0.6714 MB / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.009406, allocations: 4 kB / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.578e-06/0.009411, allocations: 3.938 kB / 279.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.009412, allocations: 0 / 279.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.00943, allocations: 11.98 kB / 279.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.009431, allocations: 0 / 279.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.009432, allocations: 4.125 kB / 279.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.009707, allocations: 0.5707 MB / 279.9 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.009882, allocations: 159.3 kB / 280 MB, free: 9.531 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.009917, allocations: 12 kB / 280 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.641e-05/0.01, allocations: 12 kB / 280 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.255e-05/0.0101, allocations: 39.95 kB / 280.1 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.475e-05/0.01018, allocations: 93.42 kB / 280.2 MB, free: 9.375 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000216/0.0104, allocations: 172.6 kB / 280.3 MB, free: 9.207 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0104, allocations: 0 / 280.3 MB, free: 9.207 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002485/0.01065, allocations: 52 kB / 280.4 MB, free: 9.156 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 9.694e-05/0.01074, allocations: 100.4 kB / 280.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004058/0.01115, allocations: 0.6902 MB / 281.2 MB, free: 8.234 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.01115, allocations: 4 kB / 281.2 MB, free: 8.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000209/0.01136, allocations: 0.4894 MB / 281.7 MB, free: 7.645 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.01174, allocations: 207.6 kB / 281.9 MB, free: 7.461 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007856/0.01252, allocations: 0.8415 MB / 282.7 MB, free: 6.562 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.689e-05/0.01259, allocations: 107.7 kB / 282.8 MB, free: 6.438 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.118e-05/0.01262, allocations: 8.969 kB / 282.8 MB, free: 6.426 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.01298, allocations: 239.3 kB / 283.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of SimCode: time 5.82e-07/0.01298, allocations: 0 / 283.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of Templates: time 0.09394/0.1069, allocations: 7.093 MB / 290.2 MB, free: 31.29 MB / 266.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 -s gbode -gbm=radauIIA3 -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.688538132235408]