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.0009895/0.0009895, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.006374/0.006374, allocations: 161.5 kB / 24.7 MB, free: 9.418 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 0.8791/0.8791, allocations: 177.2 MB / 205 MB, free: 5.703 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 1.402e-06/1.402e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.721e-05/1.862e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001664/0.001683, allocations: 1.534 MB / 327.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.002979, allocations: 0.8497 MB / 328.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.645e-05/0.003026, allocations: 0 / 328.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.264e-05/0.003109, allocations: 15.86 kB / 328.2 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.789e-05/0.003186, allocations: 31.72 kB / 328.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.003418, allocations: 59.81 kB / 328.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.003595, allocations: 159.6 kB / 328.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.738e-05/0.003692, allocations: 21.58 kB / 328.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004463/0.004138, allocations: 0.6552 MB / 329.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.004247, allocations: 79.67 kB / 329.2 MB, free: 12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.00428, allocations: 12 kB / 329.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.552e-05/0.004305, allocations: 12 kB / 329.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.311e-05/0.004378, allocations: 75.7 kB / 329.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.869e-05/0.004447, allocations: 59.8 kB / 329.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.004757, allocations: 458.4 kB / 329.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.004761, allocations: 7.984 kB / 329.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.004763, allocations: 0 / 329.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.004767, allocations: 0 / 329.8 MB, free: 11.38 MB / 298.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.0005622/0.005329, allocations: 0.7491 MB / 330.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.005362, allocations: 12.03 kB / 330.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.127e-05/0.005423, allocations: 44.66 kB / 330.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.005635, allocations: 236 kB / 330.9 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.005653, allocations: 12.38 kB / 330.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.005676, allocations: 8.375 kB / 330.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.005969, allocations: 314.6 kB / 331.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.005976, allocations: 192 / 331.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.005995, allocations: 8.375 kB / 331.2 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.006, allocations: 3.938 kB / 331.2 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.00615, allocations: 236.5 kB / 331.4 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.00662, allocations: 424.2 kB / 331.9 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.006797, allocations: 247 kB / 332.1 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.00694, allocations: 241.2 kB / 332.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.487e-06/0.006949, allocations: 0 / 332.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.007224, allocations: 403 kB / 332.7 MB, free: 8.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 8.02e-07/0.007225, allocations: 0 / 332.7 MB, free: 8.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000684/0.007909, allocations: 0.916 MB / 333.6 MB, free: 7.168 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.007977, allocations: 191.9 kB / 333.8 MB, free: 6.938 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.008383, allocations: 0.5718 MB / 334.4 MB, free: 6.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.008404, allocations: 29.7 kB / 334.4 MB, free: 6.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.008465, allocations: 117.1 kB / 334.5 MB, free: 6.207 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.008496, allocations: 39.81 kB / 334.6 MB, free: 6.168 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.384e-05/0.00858, allocations: 101.5 kB / 334.7 MB, free: 6.062 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.312e-05/0.008653, allocations: 326.8 kB / 335 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.008795, allocations: 236.5 kB / 335.2 MB, free: 5.473 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.008933, allocations: 248.7 kB / 335.5 MB, free: 5.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.009178, allocations: 446.5 kB / 335.9 MB, free: 4.691 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.00918, allocations: 0 / 335.9 MB, free: 4.691 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004434/0.009624, allocations: 0.6612 MB / 336.6 MB, free: 3.965 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/0.009689, allocations: 152.5 kB / 336.7 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.009693, allocations: 4 kB / 336.7 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.009705, allocations: 0 / 336.7 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.67e-05/0.009722, allocations: 0 / 336.7 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.009727, allocations: 3.938 kB / 336.7 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.453e-05/0.009822, allocations: 19.92 kB / 336.7 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.791e-05/0.009889, allocations: 101.4 kB / 336.8 MB, free: 3.656 MB / 298.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.0002301/0.01012, allocations: 404.4 kB / 337.2 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.01015, allocations: 55.66 kB / 337.3 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.879e-05/0.01022, allocations: 71.41 kB / 337.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.01022, allocations: 0 / 337.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.01023, allocations: 4 kB / 337.4 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.01023, allocations: 0 / 337.4 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006984/0.01093, allocations: 1.038 MB / 338.4 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.01093, allocations: 3.938 kB / 338.4 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.457e-06/0.01093, allocations: 0 / 338.4 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.01094, allocations: 0 / 338.4 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.01096, allocations: 19.98 kB / 338.4 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.01096, allocations: 4 kB / 338.4 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01096, allocations: 0 / 338.4 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004994/0.01146, allocations: 0.8243 MB / 339.3 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/0.01169, allocations: 213.3 kB / 339.5 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.01173, allocations: 12 kB / 339.5 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.201e-05/0.01181, allocations: 15.98 kB / 339.5 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.01191, allocations: 59.88 kB / 339.6 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.732e-05/0.01197, allocations: 105.4 kB / 339.7 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002935/0.01226, allocations: 418.9 kB / 340.1 MB, free: 232 kB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01226, allocations: 0 / 340.1 MB, free: 232 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001864/0.01245, allocations: 52 kB / 340.1 MB, free: 180 kB / 298.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.851e-05/0.01253, allocations: 119.1 kB / 340.2 MB, free: 48 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004511/0.01299, allocations: 0.7675 MB / 341 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01299, allocations: 0 / 341 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.01324, allocations: 0.5288 MB / 341.5 MB, free: 14.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.01368, allocations: 193 kB / 341.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00088/0.01456, allocations: 0.953 MB / 342.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.01473, allocations: 207.6 kB / 342.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.299e-05/0.01475, allocations: 20.5 kB / 342.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01475, allocations: 0 / 342.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of Templates: time 0.003761/0.01851, allocations: 4.293 MB / 347.2 MB, free: 8.699 MB / 314.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=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.939312892965972]