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.001137/0.001137, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001422, allocations: 59.91 kB / 307.1 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1261, allocations: 50.55 MB / 357.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00319/0.1294, allocations: 1.631 MB / 359.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.1315, allocations: 0.8811 MB / 360.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.473e-05/0.1316, allocations: 0 / 360.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.1317, allocations: 7.938 kB / 360.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.892e-05/0.1318, allocations: 23.84 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.1321, allocations: 43.97 kB / 360.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.1323, allocations: 175.6 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.1324, allocations: 25.41 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007703/0.1332, allocations: 0.6434 MB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.1334, allocations: 95.62 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.1335, allocations: 12 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.31e-05/0.1335, allocations: 12 kB / 361.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.864e-05/0.1336, allocations: 71.69 kB / 361.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1338, allocations: 143 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004653/0.1342, allocations: 371.2 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1343, allocations: 0 / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1343, allocations: 4 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1343, allocations: 4 kB / 361.8 MB, free: 10.27 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.0009846/0.1353, allocations: 0.814 MB / 362.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1353, allocations: 8.031 kB / 362.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.515e-05/0.1354, allocations: 44.47 kB / 362.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.1358, allocations: 298.1 kB / 362.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.1358, allocations: 4.375 kB / 362.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.269e-05/0.1358, allocations: 12.31 kB / 362.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003591/0.1362, allocations: 173.9 kB / 363.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1362, allocations: 4 kB / 363.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.1362, allocations: 4 kB / 363.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1363, allocations: 4 kB / 363.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.1364, allocations: 83.95 kB / 363.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007047/0.1371, allocations: 0.4964 MB / 363.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.1374, allocations: 126.5 kB / 363.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.1376, allocations: 112.9 kB / 363.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.1376, allocations: 7.875 kB / 363.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003892/0.138, allocations: 246 kB / 364.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.914e-06/0.138, allocations: 0 / 364.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001038/0.139, allocations: 0.607 MB / 364.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.1392, allocations: 195.9 kB / 365 MB, free: 6.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007227/0.1399, allocations: 0.5678 MB / 365.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.1399, allocations: 29.7 kB / 365.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/0.14, allocations: 113.1 kB / 365.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.682e-05/0.1401, allocations: 31.61 kB / 365.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.1402, allocations: 97.41 kB / 365.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1403, allocations: 330.8 kB / 366.1 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.1405, allocations: 87.95 kB / 366.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.1407, allocations: 97.67 kB / 366.3 MB, free: 5.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004265/0.1411, allocations: 440.9 kB / 366.7 MB, free: 4.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1411, allocations: 4 kB / 366.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007298/0.1419, allocations: 0.494 MB / 367.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.346e-05/0.142, allocations: 156.4 kB / 367.4 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.142, allocations: 4.047 kB / 367.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.142, allocations: 4 kB / 367.4 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.055e-05/0.142, allocations: 8.031 kB / 367.4 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.142, allocations: 0 / 367.4 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.1422, allocations: 12 kB / 367.4 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.984e-05/0.1423, allocations: 97.34 kB / 367.5 MB, free: 4.051 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.0003415/0.1427, allocations: 407.9 kB / 367.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.1427, allocations: 43.53 kB / 368 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.919e-05/0.1428, allocations: 63.48 kB / 368 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1428, allocations: 4 kB / 368 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1428, allocations: 4 kB / 368 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1429, allocations: 3.984 kB / 368 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.144, allocations: 0.9671 MB / 369 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.144, allocations: 0 / 369 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-06/0.144, allocations: 0 / 369 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1441, allocations: 4 kB / 369 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.1441, allocations: 19.98 kB / 369 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1441, allocations: 4 kB / 369 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1441, allocations: 3.938 kB / 369 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007724/0.1449, allocations: 0.6596 MB / 369.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003008/0.1452, allocations: 256.3 kB / 369.9 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.1453, allocations: 15.94 kB / 370 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.1454, allocations: 15.92 kB / 370 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.1456, allocations: 59.88 kB / 370 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-05/0.1457, allocations: 105.2 kB / 370.1 MB, free: 1.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004672/0.1462, allocations: 422.8 kB / 370.5 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1462, allocations: 4 kB / 370.6 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.1465, allocations: 51.91 kB / 370.6 MB, free: 0.7617 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.0001475/0.1466, allocations: 119.3 kB / 370.7 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005771/0.1472, allocations: 0.5399 MB / 371.3 MB, free: 32 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1472, allocations: 4 kB / 371.3 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1294/0.2766, allocations: 459.9 kB / 371.7 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009447/0.2776, allocations: 190.7 kB / 371.9 MB, free: 20.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2789, allocations: 0.9201 MB / 372.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.2792, allocations: 0.8149 MB / 373.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.343e-05/0.2792, allocations: 17.25 kB / 373.6 MB, free: 19.44 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2792, allocations: 2.938 kB / 373.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of Templates: time 0.007005/0.2862, allocations: 4.282 MB / 377.9 MB, free: 18.98 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 -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