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.00094/0.00094, allocations: 87.88 kB / 21.19 MB, free: 3.406 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.0009061/0.0009061, allocations: 141.1 kB / 24.54 MB, free: 64 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 0.9973/0.9973, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] 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.192e-06/1.192e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.825e-05, allocations: 5.969 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.0018/0.001828, allocations: 1.565 MB / 269.6 MB, free: 4.844 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.00314, allocations: 0.8419 MB / 270.4 MB, free: 3.996 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.543e-05/0.003186, allocations: 0 / 270.4 MB, free: 3.996 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.43e-05/0.00328, allocations: 15.86 kB / 270.4 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.053e-05/0.00336, allocations: 27.73 kB / 270.4 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002457/0.003606, allocations: 63.81 kB / 270.5 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.003778, allocations: 155.7 kB / 270.7 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.599e-05/0.003874, allocations: 13.58 kB / 270.7 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000498/0.004372, allocations: 0.6629 MB / 271.3 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.004492, allocations: 75.73 kB / 271.4 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.004531, allocations: 12 kB / 271.4 MB, free: 2.969 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.253e-05/0.004564, allocations: 12 kB / 271.4 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.725e-05/0.004641, allocations: 75.72 kB / 271.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.121e-05/0.004722, allocations: 67.7 kB / 271.6 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.005003, allocations: 350.7 kB / 271.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.005005, allocations: 4 kB / 271.9 MB, free: 2.469 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.005005, allocations: 0 / 271.9 MB, free: 2.469 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.00501, allocations: 0 / 271.9 MB, free: 2.469 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.00062/0.00563, allocations: 0.8812 MB / 272.8 MB, free: 1.52 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.005665, allocations: 12.92 kB / 272.8 MB, free: 1.508 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.527e-05/0.00574, allocations: 56.66 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.005954, allocations: 242.8 kB / 273.1 MB, free: 1.188 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.006003, allocations: 8.312 kB / 273.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.006035, allocations: 8.375 kB / 273.1 MB, free: 1.172 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.006351, allocations: 311.3 kB / 273.4 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.006361, allocations: 192 / 273.4 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.00638, allocations: 8.375 kB / 273.4 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.006389, allocations: 7.938 kB / 273.4 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.006521, allocations: 216.5 kB / 273.6 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005684/0.007089, allocations: 0.5344 MB / 274.2 MB, free: 0 / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.007266, allocations: 243.5 kB / 274.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.007399, allocations: 228.1 kB / 274.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.007405, allocations: 0 / 274.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.007641, allocations: 388.8 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.007642, allocations: 0 / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007025/0.008345, allocations: 0.8931 MB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.312e-05/0.008418, allocations: 195.9 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005794/0.008997, allocations: 0.67 MB / 276.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.009018, allocations: 29.7 kB / 276.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.94e-05/0.009087, allocations: 163.9 kB / 277 MB, free: 12.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.009119, allocations: 35.78 kB / 277 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.009207, allocations: 99.2 kB / 277.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.009317, allocations: 0.5001 MB / 277.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.009445, allocations: 220.4 kB / 277.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.009574, allocations: 235.9 kB / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.009806, allocations: 423.5 kB / 278.5 MB, free: 11.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.009809, allocations: 7.938 kB / 278.5 MB, free: 11.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004713/0.01028, allocations: 0.6351 MB / 279.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.082e-05/0.01035, allocations: 156.5 kB / 279.3 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01036, allocations: 0 / 279.3 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.01037, allocations: 0 / 279.3 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.288e-05/0.0104, allocations: 8.031 kB / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.0104, allocations: 0 / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.0105, allocations: 20.05 kB / 279.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.588e-05/0.01058, allocations: 93.48 kB / 279.4 MB, free: 10.25 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.0002381/0.01082, allocations: 415 kB / 279.8 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.735e-05/0.01087, allocations: 71.58 kB / 279.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.732e-05/0.01095, allocations: 55.41 kB / 279.9 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.01096, allocations: 4 kB / 279.9 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.01096, allocations: 0 / 279.9 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01096, allocations: 0 / 279.9 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008481/0.01181, allocations: 1.123 MB / 281 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.01182, allocations: 3.984 kB / 281 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.598e-06/0.01182, allocations: 0 / 281 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.01182, allocations: 3.984 kB / 281 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.01185, allocations: 24 kB / 281.1 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.01185, allocations: 3.984 kB / 281.1 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01185, allocations: 0 / 281.1 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005549/0.01241, allocations: 0.8598 MB / 281.9 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.01263, allocations: 189.4 kB / 282.1 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.01267, allocations: 11.98 kB / 282.1 MB, free: 7.273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.184e-05/0.01275, allocations: 20 kB / 282.1 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.01288, allocations: 63.91 kB / 282.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.189e-05/0.01295, allocations: 101.4 kB / 282.3 MB, free: 7.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003534/0.0133, allocations: 454.7 kB / 282.7 MB, free: 6.648 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0133, allocations: 4 kB / 282.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001978/0.0135, allocations: 48 kB / 282.8 MB, free: 6.598 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.017e-05/0.01359, allocations: 115.3 kB / 282.9 MB, free: 6.477 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000452/0.01404, allocations: 0.7515 MB / 283.7 MB, free: 5.598 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.01405, allocations: 8.062 kB / 283.7 MB, free: 5.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.01429, allocations: 0.5245 MB / 284.2 MB, free: 4.969 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/0.01477, allocations: 205.3 kB / 284.4 MB, free: 4.785 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008491/0.01562, allocations: 0.8599 MB / 285.3 MB, free: 3.863 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.657e-05/0.01569, allocations: 103.8 kB / 285.4 MB, free: 3.742 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.382e-05/0.01575, allocations: 8.969 kB / 285.4 MB, free: 3.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.203e-05/0.01578, allocations: 24.5 kB / 285.4 MB, free: 3.707 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01578, allocations: 0 / 285.4 MB, free: 3.707 MB / 266.7 MB Notification: Performance of Templates: time 0.008265/0.02404, allocations: 8.032 MB / 293.4 MB, free: 11.62 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.077749654185027]