Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 84.3 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 169.4 kB / 25.6 MB, free: 8.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.064/1.064, allocations: 158.6 MB / 187.5 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 251.5 MB, free: 7.117 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.271e-05/1.44e-05, allocations: 2.312 kB / 251.5 MB, free: 7.113 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001994/0.002008, allocations: 1.55 MB / 253 MB, free: 5.551 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.003523, allocations: 0.874 MB / 253.9 MB, free: 4.668 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.913e-05/0.003602, allocations: 0 / 253.9 MB, free: 4.668 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.003713, allocations: 11.86 kB / 253.9 MB, free: 4.656 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.853e-05/0.003811, allocations: 27.86 kB / 253.9 MB, free: 4.629 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.004079, allocations: 59.86 kB / 254 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.004265, allocations: 159.6 kB / 254.1 MB, free: 4.414 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.781e-05/0.004353, allocations: 25.52 kB / 254.2 MB, free: 4.391 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000526/0.004879, allocations: 0.6629 MB / 254.8 MB, free: 3.723 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.004988, allocations: 67.81 kB / 254.9 MB, free: 3.656 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.706e-05/0.005025, allocations: 12 kB / 254.9 MB, free: 3.645 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.775e-05/0.005053, allocations: 8 kB / 254.9 MB, free: 3.637 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.867e-05/0.005132, allocations: 83.69 kB / 255 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.346e-05/0.005205, allocations: 63.67 kB / 255.1 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.00547, allocations: 366.7 kB / 255.4 MB, free: 3.133 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.005473, allocations: 0 / 255.4 MB, free: 3.133 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.005473, allocations: 0 / 255.4 MB, free: 3.133 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.005478, allocations: 0 / 255.4 MB, free: 3.133 MB / 234.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.0006754/0.006153, allocations: 0.8773 MB / 256.3 MB, free: 2.188 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.006193, allocations: 15.92 kB / 256.3 MB, free: 2.172 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.3e-05/0.006266, allocations: 52.7 kB / 256.4 MB, free: 2.121 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.006498, allocations: 242.8 kB / 256.6 MB, free: 1.855 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.006524, allocations: 8.375 kB / 256.6 MB, free: 1.848 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.006547, allocations: 8.375 kB / 256.6 MB, free: 1.84 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.006857, allocations: 310.9 kB / 256.9 MB, free: 1.5 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.006864, allocations: 192 / 256.9 MB, free: 1.5 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.006881, allocations: 4.375 kB / 256.9 MB, free: 1.496 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.006889, allocations: 7.938 kB / 256.9 MB, free: 1.488 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.007, allocations: 196.4 kB / 257.1 MB, free: 1.266 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005028/0.007503, allocations: 444 kB / 257.6 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.007668, allocations: 227.5 kB / 257.8 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.007781, allocations: 204.2 kB / 258 MB, free: 312 kB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.856e-06/0.007789, allocations: 8 kB / 258 MB, free: 304 kB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.008064, allocations: 372.7 kB / 258.4 MB, free: 15.88 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 2.514e-06/0.008067, allocations: 0 / 258.4 MB, free: 15.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006827/0.008749, allocations: 0.8386 MB / 259.2 MB, free: 14.94 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.008824, allocations: 195.9 kB / 259.4 MB, free: 14.7 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004532/0.009277, allocations: 0.5451 MB / 259.9 MB, free: 14.14 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.0093, allocations: 33.64 kB / 260 MB, free: 14.1 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/0.009372, allocations: 171.8 kB / 260.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.009402, allocations: 27.84 kB / 260.2 MB, free: 13.9 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.975e-05/0.009491, allocations: 111.1 kB / 260.3 MB, free: 13.79 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.009623, allocations: 0.5001 MB / 260.8 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.009738, allocations: 196.6 kB / 261 MB, free: 13.05 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.009856, allocations: 219.8 kB / 261.2 MB, free: 12.8 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.01007, allocations: 404.3 kB / 261.6 MB, free: 12.33 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01008, allocations: 0 / 261.6 MB, free: 12.33 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003989/0.01047, allocations: 0.6039 MB / 262.2 MB, free: 11.66 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.381e-05/0.01054, allocations: 156.5 kB / 262.3 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.01054, allocations: 4 kB / 262.3 MB, free: 11.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.01055, allocations: 4.031 kB / 262.3 MB, free: 11.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.437e-05/0.01057, allocations: 0 / 262.3 MB, free: 11.47 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.315e-06/0.01057, allocations: 0 / 262.3 MB, free: 11.47 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.988e-05/0.01066, allocations: 15.98 kB / 262.3 MB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.01073, allocations: 97.53 kB / 262.4 MB, free: 11.36 MB / 250.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.0002434/0.01097, allocations: 423.1 kB / 262.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.01102, allocations: 59.66 kB / 262.9 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.655e-05/0.0111, allocations: 59.41 kB / 263 MB, free: 10.79 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.0111, allocations: 3.938 kB / 263 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.0111, allocations: 4 kB / 263 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.0111, allocations: 64 / 263 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006754/0.01178, allocations: 0.9986 MB / 264 MB, free: 9.684 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.01178, allocations: 3.938 kB / 264 MB, free: 9.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-06/0.01179, allocations: 0 / 264 MB, free: 9.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.01179, allocations: 0 / 264 MB, free: 9.68 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.01181, allocations: 19.98 kB / 264 MB, free: 9.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.01181, allocations: 0 / 264 MB, free: 9.66 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.01181, allocations: 4 kB / 264 MB, free: 9.656 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005018/0.01231, allocations: 0.8324 MB / 264.8 MB, free: 8.742 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002562/0.01257, allocations: 197.3 kB / 265 MB, free: 8.547 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.01261, allocations: 12 kB / 265 MB, free: 8.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.685e-05/0.01269, allocations: 19.98 kB / 265.1 MB, free: 8.516 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.01277, allocations: 35.97 kB / 265.1 MB, free: 8.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-05/0.01284, allocations: 105.4 kB / 265.2 MB, free: 8.375 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002195/0.01306, allocations: 330.8 kB / 265.5 MB, free: 8.055 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01306, allocations: 0 / 265.5 MB, free: 8.055 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001898/0.01325, allocations: 48 kB / 265.6 MB, free: 8.008 MB / 250.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 8.798e-05/0.01334, allocations: 107.2 kB / 265.7 MB, free: 7.891 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004191/0.01376, allocations: 0.7241 MB / 266.4 MB, free: 7.039 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01376, allocations: 0 / 266.4 MB, free: 7.039 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.01397, allocations: 0.4933 MB / 266.9 MB, free: 6.449 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.0144, allocations: 215.3 kB / 267.1 MB, free: 6.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008781/0.01527, allocations: 0.8434 MB / 267.9 MB, free: 5.348 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.827e-05/0.01534, allocations: 103.8 kB / 268 MB, free: 5.227 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.831e-05/0.01539, allocations: 16.95 kB / 268.1 MB, free: 5.207 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003784/0.01577, allocations: 286.1 kB / 268.3 MB, free: 4.926 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01577, allocations: 4 kB / 268.3 MB, free: 4.922 MB / 250.7 MB Notification: Performance of Templates: time 0.007929/0.0237, allocations: 7.339 MB / 275.7 MB, free: 13.44 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.9380187918432057]