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.001444/0.001444, allocations: 116.2 kB / 20.43 MB, free: 1.297 MB / 14.72 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.001551/0.001551, allocations: 186.3 kB / 23.72 MB, free: 4.535 MB / 14.72 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.51/1.51, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 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 0.001394/0.001394, allocations: 47.92 kB / 370.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3055, allocations: 52.18 MB / 423.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.004108/0.3096, allocations: 1.575 MB / 424.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002738/0.3123, allocations: 0.8732 MB / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.345e-05/0.3124, allocations: 0 / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.3126, allocations: 15.86 kB / 425.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.3127, allocations: 19.86 kB / 425.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.3131, allocations: 59 kB / 425.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.3134, allocations: 159.6 kB / 425.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.3135, allocations: 21.58 kB / 425.8 MB, free: 12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009906/0.3145, allocations: 0.6356 MB / 426.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.3147, allocations: 91.62 kB / 426.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.847e-05/0.3148, allocations: 8 kB / 426.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.086e-05/0.3149, allocations: 12 kB / 426.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.315, allocations: 75.69 kB / 426.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.3152, allocations: 131 kB / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006893/0.3159, allocations: 463.3 kB / 427.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3159, allocations: 4 kB / 427.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3159, allocations: 0 / 427.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.3159, allocations: 0 / 427.2 MB, free: 10.59 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.001225/0.3171, allocations: 0.754 MB / 428 MB, free: 9.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.3172, allocations: 12.03 kB / 428 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.3173, allocations: 48.66 kB / 428.1 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.3178, allocations: 232.8 kB / 428.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.3178, allocations: 4.375 kB / 428.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.319e-05/0.3178, allocations: 12.38 kB / 428.3 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005031/0.3183, allocations: 177.8 kB / 428.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3183, allocations: 0 / 428.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.3184, allocations: 4 kB / 428.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.3184, allocations: 0 / 428.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.3187, allocations: 83.95 kB / 428.6 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.3197, allocations: 483.5 kB / 429 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.32, allocations: 98.53 kB / 429.1 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.3202, allocations: 76.89 kB / 429.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.3202, allocations: 7.984 kB / 429.2 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005834/0.3208, allocations: 246.6 kB / 429.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.3208, allocations: 0 / 429.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001376/0.3222, allocations: 0.6149 MB / 430.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.3224, allocations: 195.9 kB / 430.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.3234, allocations: 0.5601 MB / 430.8 MB, free: 6.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.3235, allocations: 33.7 kB / 430.8 MB, free: 6.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.3236, allocations: 117 kB / 431 MB, free: 6.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.978e-05/0.3236, allocations: 27.81 kB / 431 MB, free: 6.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.3238, allocations: 101.5 kB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.324, allocations: 330.8 kB / 431.4 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.3243, allocations: 79.97 kB / 431.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.3245, allocations: 101.3 kB / 431.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006354/0.3252, allocations: 438.6 kB / 432 MB, free: 5.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3252, allocations: 0 / 432 MB, free: 5.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00105/0.3262, allocations: 0.5098 MB / 432.5 MB, free: 4.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.3263, allocations: 148.5 kB / 432.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.3263, allocations: 4 kB / 432.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.3264, allocations: 0 / 432.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.696e-05/0.3264, allocations: 4.062 kB / 432.7 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.3264, allocations: 4.094 kB / 432.7 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.3266, allocations: 19.98 kB / 432.7 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/0.3268, allocations: 101.2 kB / 432.8 MB, free: 4.602 MB / 334.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.0005771/0.3273, allocations: 399.9 kB / 433.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.3274, allocations: 51.75 kB / 433.2 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00016/0.3276, allocations: 71.36 kB / 433.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3276, allocations: 0 / 433.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.3276, allocations: 3.984 kB / 433.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3276, allocations: 0 / 433.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.3294, allocations: 0.9312 MB / 434.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3294, allocations: 0 / 434.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.059e-06/0.3294, allocations: 0 / 434.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3294, allocations: 0 / 434.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.507e-05/0.3295, allocations: 19.98 kB / 434.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3295, allocations: 4 kB / 434.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3295, allocations: 3.938 kB / 434.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.3308, allocations: 0.6715 MB / 434.9 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006147/0.3314, allocations: 213.3 kB / 435.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3315, allocations: 12 kB / 435.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.3317, allocations: 15.98 kB / 435.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.3319, allocations: 55.88 kB / 435.2 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.3321, allocations: 101.2 kB / 435.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007927/0.3329, allocations: 418.9 kB / 435.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3329, allocations: 0 / 435.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005277/0.3334, allocations: 48 kB / 435.8 MB, free: 1.453 MB / 334.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.000203/0.3336, allocations: 135.1 kB / 435.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000875/0.3345, allocations: 476.9 kB / 436.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3345, allocations: 0 / 436.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005562/0.3351, allocations: 397 kB / 436.8 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.3363, allocations: 189.3 kB / 437 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.338, allocations: 0.7528 MB / 437.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006741/0.3387, allocations: 0.8219 MB / 438.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.424e-05/0.3388, allocations: 12.97 kB / 438.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.815e-05/0.3388, allocations: 19.44 kB / 438.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3388, allocations: 0 / 438.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of Templates: time 0.01822/0.357, allocations: 7.475 MB / 446 MB, free: 6.91 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480] 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.783154248259962]