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.001786/0.001786, allocations: 107 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.002161/0.002161, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 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.452/1.452, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001576/0.001576, allocations: 51.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2386, allocations: 53.38 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002814/0.2415, allocations: 1.522 MB / 433.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.2434, allocations: 0.8498 MB / 434.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.678e-05/0.2435, allocations: 0 / 434.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.18e-05/0.2436, allocations: 19.81 kB / 434.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.965e-05/0.2437, allocations: 19.86 kB / 434.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.244, allocations: 63.8 kB / 434.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002344/0.2442, allocations: 159.7 kB / 435 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.594e-05/0.2443, allocations: 17.25 kB / 435 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007004/0.245, allocations: 0.6317 MB / 435.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.2451, allocations: 87.62 kB / 435.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.513e-05/0.2452, allocations: 12 kB / 435.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.521e-05/0.2452, allocations: 12 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.631e-05/0.2453, allocations: 83.61 kB / 435.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.2455, allocations: 91.3 kB / 435.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004684/0.2459, allocations: 465 kB / 436.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2459, allocations: 0 / 436.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2459, allocations: 0 / 436.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.2459, allocations: 0 / 436.3 MB, free: 2.699 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.000936/0.2469, allocations: 0.7463 MB / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.2469, allocations: 12.03 kB / 437.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.247, allocations: 44.66 kB / 437.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.2474, allocations: 240.7 kB / 437.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.2474, allocations: 12.38 kB / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.2474, allocations: 12.38 kB / 437.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/0.2479, allocations: 318.3 kB / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.2479, allocations: 0 / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.248, allocations: 8 kB / 437.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.248, allocations: 0 / 437.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002874/0.2483, allocations: 232.4 kB / 437.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000784/0.249, allocations: 432 kB / 438.4 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.2494, allocations: 247 kB / 438.6 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002826/0.2497, allocations: 225.5 kB / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.2497, allocations: 11.94 kB / 438.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004884/0.2502, allocations: 391.1 kB / 439.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.2502, allocations: 0 / 439.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001224/0.2514, allocations: 0.9047 MB / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.2515, allocations: 191.9 kB / 440.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007237/0.2522, allocations: 0.5678 MB / 440.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.2523, allocations: 29.7 kB / 440.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.2524, allocations: 117.1 kB / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/0.2524, allocations: 35.7 kB / 441.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.2526, allocations: 97.5 kB / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.2528, allocations: 338.7 kB / 441.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.253, allocations: 236.5 kB / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.2533, allocations: 248.7 kB / 442 MB, free: 12.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004749/0.2538, allocations: 442.6 kB / 442.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2538, allocations: 0 / 442.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008544/0.2546, allocations: 0.647 MB / 443 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001145/0.2548, allocations: 152.4 kB / 443.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2548, allocations: 7.984 kB / 443.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.2548, allocations: 0 / 443.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.018e-05/0.2548, allocations: 4.031 kB / 443.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.2548, allocations: 0 / 443.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.255, allocations: 12 kB / 443.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.2551, allocations: 101.2 kB / 443.3 MB, free: 11 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.0004882/0.2556, allocations: 396 kB / 443.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.538e-05/0.2556, allocations: 51.72 kB / 443.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.2558, allocations: 71.41 kB / 443.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2558, allocations: 0 / 443.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2558, allocations: 0 / 443.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2558, allocations: 3.984 kB / 443.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001294/0.2571, allocations: 1.034 MB / 444.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2571, allocations: 0 / 444.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-06/0.2571, allocations: 0 / 444.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2571, allocations: 0 / 444.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/0.2571, allocations: 19.98 kB / 444.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2571, allocations: 0 / 444.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2571, allocations: 0 / 444.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009485/0.2581, allocations: 0.8165 MB / 445.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004301/0.2585, allocations: 217.3 kB / 445.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.186e-05/0.2586, allocations: 11.98 kB / 445.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.2587, allocations: 16.12 kB / 445.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.2589, allocations: 63.86 kB / 446 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.259, allocations: 105.2 kB / 446.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005383/0.2595, allocations: 422.8 kB / 446.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2595, allocations: 0 / 446.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.2598, allocations: 52 kB / 446.6 MB, free: 7.551 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.0001479/0.26, allocations: 119.2 kB / 446.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007876/0.2608, allocations: 0.7597 MB / 447.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2608, allocations: 0 / 447.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.2612, allocations: 0.5288 MB / 448 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008235/0.2621, allocations: 193.1 kB / 448.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.2634, allocations: 0.9123 MB / 449.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.2637, allocations: 207.5 kB / 449.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.448e-05/0.2637, allocations: 12.95 kB / 449.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.2638, allocations: 23.38 kB / 449.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2638, allocations: 0 / 449.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of Templates: time 0.01252/0.2763, allocations: 8.144 MB / 457.5 MB, free: 12.31 MB / 366.1 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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.518982604000485]