Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 85.91 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 154.4 kB / 25.61 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9855/0.9855, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 274.1 MB, free: 4.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.324e-05/1.467e-05, allocations: 4.312 kB / 274.1 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.005035/0.00505, allocations: 1.571 MB / 275.7 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.006632, allocations: 0.8623 MB / 276.6 MB, free: 1.926 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.841e-05/0.00668, allocations: 4 kB / 276.6 MB, free: 1.922 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.572e-05/0.006766, allocations: 12.48 kB / 276.6 MB, free: 1.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.304e-05/0.006849, allocations: 33.75 kB / 276.6 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.007061, allocations: 47.83 kB / 276.7 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.007243, allocations: 159.7 kB / 276.8 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.841e-05/0.007322, allocations: 17.58 kB / 276.8 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003596/0.01092, allocations: 0.6634 MB / 277.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.01104, allocations: 76.84 kB / 277.6 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.507e-05/0.01107, allocations: 12 kB / 277.6 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.473e-05/0.0111, allocations: 8 kB / 277.6 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.269e-05/0.01117, allocations: 77.03 kB / 277.7 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.028e-05/0.01125, allocations: 67.66 kB / 277.7 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.01154, allocations: 354.8 kB / 278.1 MB, free: 416 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.764e-06/0.01155, allocations: 0.75 kB / 278.1 MB, free: 416 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.01155, allocations: 0 / 278.1 MB, free: 416 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.01155, allocations: 0 / 278.1 MB, free: 416 kB / 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.0006713/0.01222, allocations: 0.8812 MB / 279 MB, free: 15.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.01225, allocations: 8.031 kB / 279 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.085e-05/0.01233, allocations: 60.66 kB / 279 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.01255, allocations: 238.7 kB / 279.3 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.01257, allocations: 8.375 kB / 279.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.0126, allocations: 16.36 kB / 279.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002945/0.01289, allocations: 293.6 kB / 279.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.0129, allocations: 192 / 279.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.01292, allocations: 8.375 kB / 279.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.01293, allocations: 3.938 kB / 279.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.01306, allocations: 204.4 kB / 279.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00351/0.01657, allocations: 444 kB / 280.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.01674, allocations: 227.5 kB / 280.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.01687, allocations: 204.2 kB / 280.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-06/0.01688, allocations: 0 / 280.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.01713, allocations: 380.6 kB / 281 MB, free: 13.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 8.42e-07/0.01713, allocations: 0 / 281 MB, free: 13.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007548/0.01788, allocations: 0.8457 MB / 281.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.641e-05/0.01796, allocations: 191.9 kB / 282 MB, free: 11.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005729/0.01853, allocations: 0.5528 MB / 282.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.01856, allocations: 29.7 kB / 282.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.639e-05/0.01864, allocations: 171.8 kB / 282.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.01868, allocations: 31.78 kB / 282.8 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.01879, allocations: 103.2 kB / 282.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.01891, allocations: 0.4962 MB / 283.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.01905, allocations: 196.5 kB / 283.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.01919, allocations: 223.9 kB / 283.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003272/0.02246, allocations: 410.8 kB / 284.2 MB, free: 9.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.02246, allocations: 0 / 284.2 MB, free: 9.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005207/0.02298, allocations: 0.6078 MB / 284.8 MB, free: 8.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.96e-05/0.02305, allocations: 148.6 kB / 285 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.02306, allocations: 7.922 kB / 285 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.686e-06/0.02307, allocations: 4 kB / 285 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.324e-05/0.02308, allocations: 3.938 kB / 285 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.02308, allocations: 0 / 285 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.02319, allocations: 20.03 kB / 285 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.68e-05/0.02328, allocations: 97.48 kB / 285.1 MB, free: 8.621 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.0002919/0.02357, allocations: 423 kB / 285.5 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/0.02364, allocations: 63.66 kB / 285.6 MB, free: 8.105 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.463e-05/0.02373, allocations: 59.41 kB / 285.6 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.02373, allocations: 0 / 285.6 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.02374, allocations: 3.984 kB / 285.6 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.02374, allocations: 0 / 285.6 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008463/0.02458, allocations: 0.9946 MB / 286.6 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.02459, allocations: 3.938 kB / 286.6 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.955e-06/0.02459, allocations: 4 kB / 286.6 MB, free: 6.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.02459, allocations: 0 / 286.6 MB, free: 6.945 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.02462, allocations: 23.98 kB / 286.7 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.02462, allocations: 0 / 286.7 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.02462, allocations: 0 / 286.7 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006122/0.02523, allocations: 0.8247 MB / 287.5 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003302/0.02853, allocations: 201.3 kB / 287.7 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/0.02858, allocations: 12 kB / 287.7 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.0287, allocations: 12 kB / 287.7 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.575e-05/0.02878, allocations: 47.94 kB / 287.8 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-05/0.02887, allocations: 113.5 kB / 287.9 MB, free: 5.637 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000277/0.02915, allocations: 318.8 kB / 288.2 MB, free: 5.328 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02915, allocations: 0 / 288.2 MB, free: 5.328 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002688/0.02941, allocations: 52 kB / 288.2 MB, free: 5.277 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 9.577e-05/0.02951, allocations: 107.2 kB / 288.3 MB, free: 5.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004634/0.02997, allocations: 0.7163 MB / 289.1 MB, free: 4.316 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-06/0.02997, allocations: 0 / 289.1 MB, free: 4.316 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002803/0.03025, allocations: 0.4972 MB / 289.6 MB, free: 3.723 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005948/0.03085, allocations: 213.6 kB / 289.8 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009414/0.03179, allocations: 0.8483 MB / 290.6 MB, free: 2.633 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.574e-05/0.03188, allocations: 103.6 kB / 290.7 MB, free: 2.512 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.486e-05/0.03192, allocations: 16.94 kB / 290.7 MB, free: 2.492 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005214/0.03244, allocations: 270.1 kB / 291 MB, free: 2.227 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.03244, allocations: 0 / 291 MB, free: 2.227 MB / 266.7 MB Notification: Performance of Templates: time 0.009452/0.0419, allocations: 7.452 MB / 298.4 MB, free: 10.72 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8042427110485733]