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.001943/0.001943, allocations: 91.92 kB / 20.97 MB, free: 3.441 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.001968/0.001968, allocations: 145.1 kB / 24.26 MB, free: 152 kB / 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.589/1.589, allocations: 173.4 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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.674e-06/1.674e-06, allocations: 0 / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.229e-05/3.397e-05, allocations: 2.312 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003443/0.003477, allocations: 1.534 MB / 268.9 MB, free: 5.199 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.005592, allocations: 0.8419 MB / 269.7 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.604e-05/0.005638, allocations: 0 / 269.7 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.00574, allocations: 11.86 kB / 269.7 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.387e-05/0.005833, allocations: 23.8 kB / 269.7 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.006123, allocations: 59.81 kB / 269.8 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.006383, allocations: 163.6 kB / 269.9 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.006488, allocations: 21.58 kB / 270 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009892/0.007477, allocations: 0.659 MB / 270.6 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.007645, allocations: 79.73 kB / 270.7 MB, free: 3.332 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.454e-05/0.00772, allocations: 12 kB / 270.7 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.372e-05/0.007784, allocations: 12 kB / 270.7 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.007895, allocations: 71.72 kB / 270.8 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.00802, allocations: 59.73 kB / 270.9 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000572/0.008592, allocations: 462.4 kB / 271.3 MB, free: 2.727 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.008596, allocations: 4 kB / 271.3 MB, free: 2.723 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.008597, allocations: 0 / 271.3 MB, free: 2.723 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.008603, allocations: 0 / 271.3 MB, free: 2.723 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.001146/0.009749, allocations: 0.9044 MB / 272.2 MB, free: 1.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.009787, allocations: 8.922 kB / 272.2 MB, free: 1.742 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.009912, allocations: 56.64 kB / 272.3 MB, free: 1.688 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.0103, allocations: 234.9 kB / 272.5 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.01032, allocations: 8.312 kB / 272.5 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.01036, allocations: 12.38 kB / 272.5 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.01085, allocations: 322.5 kB / 272.8 MB, free: 1.059 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.01086, allocations: 192 / 272.8 MB, free: 1.059 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.01089, allocations: 8.375 kB / 272.9 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.0109, allocations: 7.938 kB / 272.9 MB, free: 1.043 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003293/0.01123, allocations: 236.5 kB / 273.1 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.01237, allocations: 0.5891 MB / 273.7 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.01275, allocations: 267.5 kB / 273.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.01307, allocations: 248.2 kB / 274.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.01308, allocations: 0 / 274.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005526/0.01363, allocations: 408.8 kB / 274.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.01364, allocations: 4 kB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.001462/0.0151, allocations: 0.9401 MB / 275.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.01525, allocations: 195.9 kB / 275.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.01639, allocations: 0.7443 MB / 276.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/0.01643, allocations: 29.7 kB / 276.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.01657, allocations: 171.9 kB / 276.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.329e-05/0.01663, allocations: 31.8 kB / 276.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.0168, allocations: 107.2 kB / 276.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003814/0.01718, allocations: 0.5079 MB / 277.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002937/0.01747, allocations: 232.5 kB / 277.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.0178, allocations: 263.1 kB / 277.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005604/0.01836, allocations: 468.3 kB / 278.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01836, allocations: 0 / 278.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009619/0.01932, allocations: 0.6742 MB / 278.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/0.01945, allocations: 148.5 kB / 279.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.01946, allocations: 80 / 279.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.01947, allocations: 7.984 kB / 279.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.048e-05/0.01949, allocations: 0 / 279.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.0195, allocations: 4.094 kB / 279.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.01966, allocations: 19.94 kB / 279.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.01979, allocations: 97.52 kB / 279.2 MB, free: 10.09 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.0004608/0.02025, allocations: 426.8 kB / 279.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.947e-05/0.02035, allocations: 59.66 kB / 279.7 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.02046, allocations: 55.42 kB / 279.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.02046, allocations: 0 / 279.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.02046, allocations: 4 kB / 279.7 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.02047, allocations: 3.984 kB / 279.7 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.02223, allocations: 1.217 MB / 280.9 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.02223, allocations: 0 / 280.9 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-06/0.02224, allocations: 3.938 kB / 280.9 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.02224, allocations: 8 kB / 281 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.02229, allocations: 19.98 kB / 281 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.02229, allocations: 0 / 281 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.02229, allocations: 3.938 kB / 281 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.02349, allocations: 0.9056 MB / 281.9 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.02395, allocations: 189.3 kB / 282.1 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.914e-05/0.02402, allocations: 12 kB / 282.1 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.02416, allocations: 15.98 kB / 282.1 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.02436, allocations: 75.91 kB / 282.2 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.02449, allocations: 101.4 kB / 282.3 MB, free: 6.773 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006983/0.02518, allocations: 486.7 kB / 282.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02518, allocations: 0 / 282.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003132/0.0255, allocations: 51.95 kB / 282.8 MB, free: 6.25 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.0001759/0.02567, allocations: 115.2 kB / 282.9 MB, free: 6.129 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009949/0.02667, allocations: 0.8101 MB / 283.7 MB, free: 5.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.02667, allocations: 0 / 283.7 MB, free: 5.191 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006853/0.02735, allocations: 0.5597 MB / 284.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009242/0.02828, allocations: 207.3 kB / 284.5 MB, free: 4.352 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.03002, allocations: 0.8911 MB / 285.4 MB, free: 3.398 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.03032, allocations: 203.5 kB / 285.6 MB, free: 3.18 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.639e-05/0.03039, allocations: 12.95 kB / 285.6 MB, free: 3.164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.03043, allocations: 20.5 kB / 285.6 MB, free: 3.145 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.03043, allocations: 0 / 285.6 MB, free: 3.145 MB / 266.7 MB Notification: Performance of Templates: time 0.01409/0.04452, allocations: 7.996 MB / 293.6 MB, free: 11.09 MB / 282.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.696241245022975]