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.0009264/0.0009264, allocations: 96.73 kB / 17.01 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001104, allocations: 197 kB / 17.91 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.7 MB / 246.4 MB, free: 9.824 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004657/0.0004658, allocations: 8 kB / 307.1 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.144, allocations: 51.53 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001635/0.1456, allocations: 1.249 MB / 359.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1476, allocations: 0.8543 MB / 360.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.561e-05/0.1477, allocations: 11.94 kB / 360.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.1478, allocations: 3.938 kB / 360.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.148, allocations: 19.86 kB / 360.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.1483, allocations: 43.94 kB / 360.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.1485, allocations: 119.7 kB / 360.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.1486, allocations: 25.38 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007269/0.1494, allocations: 0.5615 MB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.1495, allocations: 103.7 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.322e-05/0.1496, allocations: 4 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.343e-05/0.1496, allocations: 4 kB / 361.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.1497, allocations: 71.77 kB / 361.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.837e-05/0.1498, allocations: 73.52 kB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003781/0.1502, allocations: 371.1 kB / 362.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.099e-05/0.1502, allocations: 0 / 362.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.1503, allocations: 0 / 362.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.1503, allocations: 0 / 362.1 MB, free: 9.93 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.0008515/0.1511, allocations: 0.7401 MB / 362.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1512, allocations: 8.031 kB / 362.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.192e-05/0.1513, allocations: 55.44 kB / 362.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.1516, allocations: 265.3 kB / 363.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.1517, allocations: 8 kB / 363.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.1517, allocations: 15.95 kB / 363.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003772/0.1521, allocations: 168.2 kB / 363.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1521, allocations: 0 / 363.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.1522, allocations: 8 kB / 363.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1522, allocations: 4 kB / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.1524, allocations: 91.88 kB / 363.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00071/0.1531, allocations: 0.4926 MB / 364 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.1533, allocations: 126.5 kB / 364.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.1535, allocations: 112.9 kB / 364.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.1535, allocations: 4 kB / 364.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003548/0.1539, allocations: 238.6 kB / 364.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.1539, allocations: 0 / 364.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009085/0.1548, allocations: 0.6185 MB / 365.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.1549, allocations: 195.9 kB / 365.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006455/0.1556, allocations: 0.5601 MB / 365.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.1556, allocations: 33.7 kB / 365.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.26e-05/0.1557, allocations: 113 kB / 366 MB, free: 5.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.923e-05/0.1558, allocations: 31.69 kB / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.157e-05/0.1558, allocations: 11.94 kB / 366 MB, free: 5.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1559, allocations: 326.8 kB / 366.3 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.1561, allocations: 87.95 kB / 366.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.1562, allocations: 93.61 kB / 366.5 MB, free: 5.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.1564, allocations: 220.5 kB / 366.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1565, allocations: 0 / 366.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006407/0.1571, allocations: 0.498 MB / 367.2 MB, free: 4.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.1572, allocations: 148.5 kB / 367.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1572, allocations: 0 / 367.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1572, allocations: 112 / 367.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.036e-05/0.1573, allocations: 15.88 kB / 367.4 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.1573, allocations: 0 / 367.4 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.1575, allocations: 23.92 kB / 367.4 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.1576, allocations: 93.3 kB / 367.5 MB, free: 4.152 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,$whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003906/0.158, allocations: 400 kB / 367.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.538e-05/0.158, allocations: 47.52 kB / 367.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.1582, allocations: 71.47 kB / 368 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.1582, allocations: 0 / 368 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1582, allocations: 0 / 368 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1583, allocations: 0 / 368 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.1594, allocations: 0.9634 MB / 368.9 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.1594, allocations: 4 kB / 369 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.719e-06/0.1594, allocations: 3.938 kB / 369 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1594, allocations: 0 / 369 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.1595, allocations: 20.11 kB / 369 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1595, allocations: 4 kB / 369 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1595, allocations: 0 / 369 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007845/0.1603, allocations: 0.6672 MB / 369.6 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.1606, allocations: 272.2 kB / 369.9 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.448e-05/0.1607, allocations: 12 kB / 369.9 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.1608, allocations: 15.98 kB / 369.9 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.161, allocations: 51.94 kB / 370 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.1611, allocations: 101.2 kB / 370.1 MB, free: 1.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004751/0.1616, allocations: 426.8 kB / 370.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1616, allocations: 3.938 kB / 370.5 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.1619, allocations: 52 kB / 370.6 MB, free: 0.8633 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001551/0.1621, allocations: 119.2 kB / 370.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005916/0.1627, allocations: 0.5317 MB / 371.2 MB, free: 148 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1627, allocations: 0 / 371.2 MB, free: 148 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1976/0.3603, allocations: 461.7 kB / 371.7 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.3614, allocations: 166.6 kB / 371.8 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.3633, allocations: 0.8391 MB / 372.7 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.3639, allocations: 0.8221 MB / 373.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001459/0.364, allocations: 12.41 kB / 373.5 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.88e-05/0.3641, allocations: 12.11 kB / 373.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3641, allocations: 0 / 373.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of Templates: time 0.01481/0.3789, allocations: 6.583 MB / 380.1 MB, free: 17.27 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/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_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches