Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 101.4 kB / 16.94 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001655, allocations: 184.8 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.867/1.867, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004685/0.0004685, allocations: 8 kB / 280.7 MB, free: 3.781 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1251, allocations: 47.59 MB / 328.3 MB, free: 4.125 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001782/0.127, allocations: 1.233 MB / 329.6 MB, free: 2.883 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.1287, allocations: 0.8748 MB / 330.4 MB, free: 2 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.109e-05/0.1288, allocations: 0 / 330.4 MB, free: 2 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.009e-05/0.1289, allocations: 7.922 kB / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.737e-05/0.129, allocations: 23.91 kB / 330.5 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002529/0.1293, allocations: 39.89 kB / 330.5 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.1294, allocations: 79.84 kB / 330.6 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.1296, allocations: 21.39 kB / 330.6 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005583/0.1301, allocations: 479.2 kB / 331.1 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.1303, allocations: 103.7 kB / 331.2 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.1303, allocations: 4 kB / 331.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.169e-05/0.1304, allocations: 8 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.814e-05/0.1305, allocations: 71.75 kB / 331.2 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1306, allocations: 77.52 kB / 331.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.1309, allocations: 367.1 kB / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1309, allocations: 0 / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1309, allocations: 0 / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.1309, allocations: 4 kB / 331.7 MB, free: 0.7305 MB / 270.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.000775/0.1317, allocations: 0.7323 MB / 332.4 MB, free: 15.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1317, allocations: 8.031 kB / 332.4 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.1318, allocations: 47.47 kB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.1322, allocations: 281.2 kB / 332.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.1323, allocations: 4 kB / 332.7 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.1323, allocations: 16 kB / 332.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.1327, allocations: 161.5 kB / 332.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.1327, allocations: 0 / 332.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.1327, allocations: 8 kB / 332.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1327, allocations: 4 kB / 332.9 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1329, allocations: 79.95 kB / 333 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007972/0.1337, allocations: 0.512 MB / 333.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.134, allocations: 122.5 kB / 333.6 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.134, allocations: 3.938 kB / 333.6 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004117/0.1344, allocations: 238.7 kB / 333.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.1344, allocations: 0 / 333.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001149/0.1356, allocations: 0.7692 MB / 334.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.1357, allocations: 195.9 kB / 334.8 MB, free: 13.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007922/0.1365, allocations: 0.5639 MB / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.1366, allocations: 37.69 kB / 335.4 MB, free: 12.63 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.218e-05/0.1367, allocations: 113.1 kB / 335.6 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.835e-05/0.1367, allocations: 31.61 kB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.1368, allocations: 8 kB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1369, allocations: 322.8 kB / 335.9 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.1371, allocations: 83.95 kB / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.1373, allocations: 97.66 kB / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.1375, allocations: 220.2 kB / 336.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1375, allocations: 0 / 336.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007403/0.1383, allocations: 0.5018 MB / 336.8 MB, free: 11.19 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.1385, allocations: 152.5 kB / 337 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1385, allocations: 0 / 337 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.1385, allocations: 0 / 337 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.101e-05/0.1385, allocations: 0 / 337 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.1386, allocations: 7.984 kB / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1388, allocations: 15.94 kB / 337 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.1389, allocations: 113.3 kB / 337.1 MB, free: 10.87 MB / 286.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.000433/0.1393, allocations: 400.1 kB / 337.5 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.1394, allocations: 47.44 kB / 337.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.1395, allocations: 71.47 kB / 337.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1396, allocations: 0 / 337.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.1396, allocations: 0 / 337.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1396, allocations: 0 / 337.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.1408, allocations: 0.9634 MB / 338.6 MB, free: 9.266 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1409, allocations: 4 kB / 338.6 MB, free: 9.262 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.522e-06/0.1409, allocations: 3.938 kB / 338.6 MB, free: 9.258 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1409, allocations: 4 kB / 338.6 MB, free: 9.254 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.1409, allocations: 19.98 kB / 338.6 MB, free: 9.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.1409, allocations: 4 kB / 338.6 MB, free: 9.23 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1409, allocations: 3.938 kB / 338.6 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007253/0.1417, allocations: 0.6521 MB / 339.2 MB, free: 8.527 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003868/0.1421, allocations: 260.3 kB / 339.5 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.522e-05/0.1422, allocations: 16 kB / 339.5 MB, free: 8.238 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.1423, allocations: 19.89 kB / 339.5 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.1425, allocations: 51.94 kB / 339.6 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.761e-05/0.1426, allocations: 97.23 kB / 339.7 MB, free: 8.074 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000497/0.1431, allocations: 418.8 kB / 340.1 MB, free: 7.668 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1431, allocations: 0 / 340.1 MB, free: 7.668 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.1434, allocations: 55.95 kB / 340.1 MB, free: 7.613 MB / 286.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.0001771/0.1436, allocations: 127.1 kB / 340.3 MB, free: 7.477 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006524/0.1442, allocations: 0.5321 MB / 340.8 MB, free: 6.883 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1442, allocations: 3.938 kB / 340.8 MB, free: 6.879 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004843/0.1447, allocations: 461 kB / 341.3 MB, free: 6.367 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007044/0.1454, allocations: 158 kB / 341.4 MB, free: 6.215 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.1468, allocations: 0.8492 MB / 342.3 MB, free: 5.34 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.1473, allocations: 0.8224 MB / 343.1 MB, free: 4.492 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.019e-05/0.1474, allocations: 12.88 kB / 343.1 MB, free: 4.477 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.1474, allocations: 11.44 kB / 343.1 MB, free: 4.465 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1474, allocations: 0 / 343.1 MB, free: 4.465 MB / 286.1 MB Notification: Performance of Templates: time 0.01046/0.1579, allocations: 6.575 MB / 349.7 MB, free: 13.73 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches