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.001543/0.001543, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001484/0.001484, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.555/1.555, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001612/0.001612, allocations: 51.86 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1295, allocations: 53.33 MB / 426.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003032/0.1325, allocations: 1.578 MB / 428.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.1347, allocations: 0.8965 MB / 429.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.061e-05/0.1347, allocations: 0 / 429.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.605e-05/0.1348, allocations: 15.86 kB / 429.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.227e-05/0.1349, allocations: 23.8 kB / 429.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.1352, allocations: 59.86 kB / 429.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.1355, allocations: 151.7 kB / 429.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.1356, allocations: 17.41 kB / 429.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007803/0.1364, allocations: 0.6356 MB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.1365, allocations: 91.61 kB / 430.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.245e-05/0.1366, allocations: 12 kB / 430.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.78e-05/0.1366, allocations: 12 kB / 430.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1367, allocations: 79.67 kB / 430.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.1369, allocations: 131 kB / 430.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004891/0.1374, allocations: 458.1 kB / 430.9 MB, free: 112 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1374, allocations: 0 / 430.9 MB, free: 112 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1374, allocations: 0 / 430.9 MB, free: 112 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1374, allocations: 0 / 430.9 MB, free: 112 kB / 350.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.2621/0.3995, allocations: 0.8206 MB / 431.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.3996, allocations: 10.47 kB / 431.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.3997, allocations: 45.41 kB / 431.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.4, allocations: 296.5 kB / 432.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.4, allocations: 12.78 kB / 432.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.309e-05/0.4001, allocations: 9.625 kB / 432.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.4005, allocations: 172.7 kB / 432.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.4005, allocations: 0 / 432.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.4005, allocations: 8.375 kB / 432.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.4006, allocations: 1.375 kB / 432.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.4008, allocations: 87.41 kB / 432.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007914/0.4016, allocations: 0.4994 MB / 432.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.4018, allocations: 100.1 kB / 433 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.402, allocations: 87.97 kB / 433.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.402, allocations: 2.438 kB / 433.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000365/0.4023, allocations: 249.1 kB / 433.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.4023, allocations: 0 / 433.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001097/0.4034, allocations: 0.6112 MB / 433.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.4035, allocations: 191 kB / 434.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007257/0.4042, allocations: 0.573 MB / 434.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.4043, allocations: 31.02 kB / 434.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.072e-05/0.4043, allocations: 117.8 kB / 434.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.102e-05/0.4044, allocations: 37.47 kB / 434.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.4045, allocations: 94.94 kB / 435 MB, free: 9.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.792e-05/0.4046, allocations: 331.3 kB / 435.3 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.4048, allocations: 82.73 kB / 435.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.405, allocations: 103.4 kB / 435.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.4054, allocations: 435.6 kB / 435.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.4054, allocations: 0 / 435.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007526/0.4061, allocations: 0.506 MB / 436.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/0.4062, allocations: 152.8 kB / 436.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.4062, allocations: 1.188 kB / 436.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.4062, allocations: 1.891 kB / 436.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.245e-05/0.4063, allocations: 3.562 kB / 436.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.4063, allocations: 1.125 kB / 436.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.4064, allocations: 15.59 kB / 436.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.4066, allocations: 97.2 kB / 436.7 MB, free: 8.418 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.0003149/0.4069, allocations: 405.3 kB / 437.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.4069, allocations: 45.78 kB / 437.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.4071, allocations: 71.98 kB / 437.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.4071, allocations: 1.797 kB / 437.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4071, allocations: 0 / 437.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4071, allocations: 0.7969 kB / 437.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.4083, allocations: 0.965 MB / 438.1 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.4083, allocations: 3.75 kB / 438.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.242e-06/0.4083, allocations: 0.5156 kB / 438.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.4083, allocations: 1.281 kB / 438.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.235e-05/0.4083, allocations: 23.41 kB / 438.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4083, allocations: 4.312 kB / 438.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4083, allocations: 0 / 438.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008375/0.4092, allocations: 0.6639 MB / 438.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.4095, allocations: 257 kB / 439.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.093e-05/0.4095, allocations: 12.62 kB / 439.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.4097, allocations: 12.27 kB / 439.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.4099, allocations: 57.94 kB / 439.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/0.41, allocations: 108.1 kB / 439.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005497/0.4106, allocations: 420.6 kB / 439.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4106, allocations: 3.938 kB / 439.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.4109, allocations: 52 kB / 439.7 MB, free: 6.598 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.0001786/0.4111, allocations: 127.5 kB / 439.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006293/0.4117, allocations: 482.8 kB / 440.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4117, allocations: 0 / 440.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.412, allocations: 386.8 kB / 440.7 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008909/0.4129, allocations: 182.4 kB / 440.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.4142, allocations: 0.7605 MB / 441.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.4146, allocations: 0.8195 MB / 442.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.4148, allocations: 19.61 kB / 442.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.4148, allocations: 13.25 kB / 442.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4148, allocations: 0 / 442.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01673/0.4315, allocations: 7.441 MB / 450 MB, free: 3.215 MB / 350.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/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.922621123492718]