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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 119.8 kB / 18.41 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 207.4 kB / 19.36 MB, free: 3.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 64.33 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.113, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003519/0.1165, allocations: 1.564 MB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002574/0.1192, allocations: 0.8903 MB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1193, allocations: 0 / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.1195, allocations: 15.86 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.1197, allocations: 31.78 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000384/0.1201, allocations: 55.88 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.1204, allocations: 167.7 kB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.1206, allocations: 29.39 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007941/0.1214, allocations: 0.6161 MB / 362.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.1216, allocations: 87.62 kB / 362.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.1216, allocations: 12 kB / 362.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.978e-05/0.1217, allocations: 8 kB / 362.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.1218, allocations: 75.69 kB / 362.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.122, allocations: 139 kB / 362.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.1224, allocations: 454.4 kB / 363 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1224, allocations: 0 / 363 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1224, allocations: 4 kB / 363 MB, free: 9.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.76e-05/0.1225, allocations: 0 / 363 MB, free: 9.168 MB / 302.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.00107/0.1235, allocations: 0.8099 MB / 363.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1236, allocations: 12.03 kB / 363.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.1237, allocations: 40.47 kB / 363.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.1242, allocations: 298.1 kB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.1242, allocations: 8.375 kB / 364.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.921e-05/0.1243, allocations: 8.375 kB / 364.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004179/0.1247, allocations: 177.8 kB / 364.4 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1247, allocations: 4 kB / 364.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.1248, allocations: 7.938 kB / 364.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1248, allocations: 0 / 364.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.125, allocations: 83.95 kB / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009069/0.1259, allocations: 0.5003 MB / 365 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.1261, allocations: 118.5 kB / 365.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.1263, allocations: 116.9 kB / 365.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.1263, allocations: 4 kB / 365.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004593/0.1268, allocations: 246.3 kB / 365.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.914e-06/0.1268, allocations: 0 / 365.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001004/0.1278, allocations: 0.6069 MB / 366 MB, free: 5.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.128, allocations: 195.9 kB / 366.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007419/0.1287, allocations: 0.5678 MB / 366.8 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.1288, allocations: 33.7 kB / 366.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.915e-05/0.1288, allocations: 117.1 kB / 367 MB, free: 4.934 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.033e-05/0.1289, allocations: 39.53 kB / 367 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.1291, allocations: 93.41 kB / 367.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1292, allocations: 330.8 kB / 367.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.1294, allocations: 79.95 kB / 367.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.1295, allocations: 101 kB / 367.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004112/0.1299, allocations: 438.8 kB / 368 MB, free: 3.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.13, allocations: 0 / 368 MB, free: 3.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007194/0.1307, allocations: 0.4979 MB / 368.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.1308, allocations: 152.5 kB / 368.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1308, allocations: 3.984 kB / 368.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1308, allocations: 4 kB / 368.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.558e-05/0.1309, allocations: 7.922 kB / 368.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1309, allocations: 0 / 368.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.131, allocations: 16.03 kB / 368.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.1312, allocations: 97.23 kB / 368.8 MB, free: 2.949 MB / 302.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.0004437/0.1316, allocations: 411.9 kB / 369.2 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.1317, allocations: 43.53 kB / 369.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.1318, allocations: 67.48 kB / 369.3 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1319, allocations: 0 / 369.3 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1319, allocations: 0 / 369.3 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1319, allocations: 0 / 369.3 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.1331, allocations: 0.971 MB / 370.3 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1331, allocations: 4 kB / 370.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.33e-06/0.1331, allocations: 0 / 370.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1331, allocations: 0 / 370.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/0.1332, allocations: 23.98 kB / 370.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1332, allocations: 128 / 370.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.1332, allocations: 7.938 kB / 370.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008244/0.134, allocations: 0.6556 MB / 371 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/0.1344, allocations: 264.3 kB / 371.2 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.513e-05/0.1345, allocations: 12 kB / 371.2 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1347, allocations: 11.98 kB / 371.2 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.1348, allocations: 59.88 kB / 371.3 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.135, allocations: 109.2 kB / 371.4 MB, free: 128 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.2074/0.3424, allocations: 413.2 kB / 371.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3424, allocations: 0 / 371.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000539/0.343, allocations: 51.94 kB / 371.9 MB, free: 20.46 MB / 302.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.0001827/0.3432, allocations: 116.1 kB / 372 MB, free: 20.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006861/0.3439, allocations: 0.5333 MB / 372.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3439, allocations: 0 / 372.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.3443, allocations: 462 kB / 373 MB, free: 19.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/0.3452, allocations: 194.8 kB / 373.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.3465, allocations: 0.7583 MB / 373.9 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.3469, allocations: 0.8147 MB / 374.7 MB, free: 18.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.997e-05/0.347, allocations: 13.16 kB / 374.7 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.232e-05/0.347, allocations: 16.75 kB / 374.7 MB, free: 18.65 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.347, allocations: 0 / 374.7 MB, free: 18.65 MB / 302.1 MB Notification: Performance of Templates: time 0.01498/0.362, allocations: 7.437 MB / 382.2 MB, free: 17.17 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches