Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001042/0.001042, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001223/0.001223, allocations: 171.8 kB / 24.82 MB, free: 8.934 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.032/1.032, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.803e-05/2.016e-05, allocations: 8.641 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002638/0.002658, allocations: 1.56 MB / 275 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.004591, allocations: 0.8731 MB / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.572e-05/0.004657, allocations: 0 / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.004757, allocations: 15.86 kB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.535e-05/0.004853, allocations: 19.8 kB / 275.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.005127, allocations: 55.88 kB / 275.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.005363, allocations: 163.6 kB / 276.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.322e-05/0.005456, allocations: 17.52 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007298/0.006186, allocations: 0.6629 MB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.006341, allocations: 79.73 kB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.089e-05/0.006392, allocations: 8 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.756e-05/0.00643, allocations: 12 kB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.032e-05/0.00652, allocations: 71.72 kB / 276.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.541e-05/0.006616, allocations: 63.72 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003667/0.006982, allocations: 354.7 kB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.006985, allocations: 0 / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.006985, allocations: 0 / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.00699, allocations: 4 kB / 277.3 MB, free: 13.33 MB / 266.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.000862/0.007852, allocations: 0.8929 MB / 278.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.007893, allocations: 8.031 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.397e-05/0.007987, allocations: 52.66 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.008247, allocations: 246.7 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.008271, allocations: 8.375 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.008301, allocations: 8.375 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.008659, allocations: 299.3 kB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.00867, allocations: 192 / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.008693, allocations: 4.375 kB / 278.8 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.0087, allocations: 3.938 kB / 278.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004503/0.009151, allocations: 208.4 kB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006087/0.009759, allocations: 436.1 kB / 279.5 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.009967, allocations: 227.4 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.01013, allocations: 204.2 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.01014, allocations: 4 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003238/0.01047, allocations: 380.7 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 2.194e-06/0.01047, allocations: 0 / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009132/0.01138, allocations: 0.8384 MB / 281.1 MB, free: 9.133 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.01148, allocations: 199.9 kB / 281.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006771/0.01216, allocations: 0.5528 MB / 281.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.01219, allocations: 29.7 kB / 281.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.601e-05/0.01227, allocations: 163.8 kB / 282.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.01232, allocations: 39.84 kB / 282.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.01245, allocations: 103.1 kB / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.0126, allocations: 0.504 MB / 282.7 MB, free: 7.461 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.01275, allocations: 196.5 kB / 282.9 MB, free: 7.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.01292, allocations: 219.8 kB / 283.1 MB, free: 6.984 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002937/0.01321, allocations: 407.6 kB / 283.5 MB, free: 6.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01321, allocations: 0 / 283.5 MB, free: 6.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006116/0.01383, allocations: 0.6039 MB / 284.1 MB, free: 5.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.01393, allocations: 156.5 kB / 284.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.01394, allocations: 0 / 284.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.01395, allocations: 0 / 284.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.155e-05/0.01397, allocations: 4 kB / 284.3 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.026e-06/0.01397, allocations: 0 / 284.3 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.01411, allocations: 19.98 kB / 284.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.01421, allocations: 101.6 kB / 284.4 MB, free: 5.543 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.0003532/0.01456, allocations: 419 kB / 284.8 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.1e-05/0.01464, allocations: 63.66 kB / 284.9 MB, free: 5.031 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.01475, allocations: 55.41 kB / 284.9 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.01476, allocations: 7.984 kB / 284.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.01476, allocations: 0 / 284.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.01476, allocations: 0 / 284.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.01586, allocations: 0.9947 MB / 285.9 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.01586, allocations: 3.938 kB / 285.9 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.687e-06/0.01587, allocations: 11.98 kB / 285.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.01588, allocations: 0 / 285.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.0159, allocations: 23.98 kB / 285.9 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.0159, allocations: 0 / 285.9 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.0159, allocations: 0 / 285.9 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005036/0.01641, allocations: 0.8209 MB / 286.8 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.01665, allocations: 201.3 kB / 287 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.01669, allocations: 16 kB / 287 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.679e-05/0.01677, allocations: 11.98 kB / 287 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.01687, allocations: 47.91 kB / 287 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.367e-05/0.01694, allocations: 97.42 kB / 287.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002313/0.01717, allocations: 326.8 kB / 287.5 MB, free: 2.254 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01717, allocations: 0 / 287.5 MB, free: 2.254 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002054/0.01737, allocations: 52 kB / 287.5 MB, free: 2.203 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 0.0001236/0.0175, allocations: 115.2 kB / 287.6 MB, free: 2.078 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004269/0.01792, allocations: 0.7086 MB / 288.3 MB, free: 1.242 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01793, allocations: 0 / 288.3 MB, free: 1.242 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.01817, allocations: 0.5127 MB / 288.8 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.01863, allocations: 205.4 kB / 289 MB, free: 464 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008303/0.01946, allocations: 0.8449 MB / 289.9 MB, free: 15.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.722e-05/0.01954, allocations: 107.8 kB / 290 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.632e-05/0.0196, allocations: 8.969 kB / 290 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004183/0.02001, allocations: 274 kB / 290.3 MB, free: 15.14 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02001, allocations: 0 / 290.3 MB, free: 15.14 MB / 282.7 MB Notification: Performance of Templates: time 0.008443/0.02846, allocations: 7.361 MB / 297.6 MB, free: 7.715 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7727548289112747]