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.001245/0.001245, allocations: 94.95 kB / 16.95 MB, free: 6.891 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.001395/0.001395, allocations: 185.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.162/2.162, allocations: 205.4 MB / 224 MB, free: 13.08 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.0005017/0.0005018, allocations: 16 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1331, allocations: 47.57 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00197/0.1351, allocations: 1.239 MB / 329.6 MB, free: 2.836 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1372, allocations: 0.8638 MB / 330.5 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.727e-05/0.1373, allocations: 0 / 330.5 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.448e-05/0.1374, allocations: 15.92 kB / 330.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.489e-05/0.1376, allocations: 15.88 kB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.1379, allocations: 39.94 kB / 330.5 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.1381, allocations: 123.7 kB / 330.6 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.1383, allocations: 17.39 kB / 330.7 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008549/0.1392, allocations: 0.5654 MB / 331.2 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.1394, allocations: 99.81 kB / 331.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.627e-05/0.1394, allocations: 8 kB / 331.3 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.404e-05/0.1395, allocations: 4 kB / 331.3 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.1396, allocations: 83.67 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.436e-05/0.1397, allocations: 73.52 kB / 331.5 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.14, allocations: 359.1 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.14, allocations: 0 / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.1401, allocations: 0 / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1401, allocations: 7.938 kB / 331.8 MB, free: 0.5586 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.0008632/0.1409, allocations: 0.7323 MB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.141, allocations: 8.031 kB / 332.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.179e-05/0.1411, allocations: 43.53 kB / 332.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.1415, allocations: 289.2 kB / 332.9 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.1415, allocations: 4 kB / 332.9 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.81e-05/0.1416, allocations: 8 kB / 332.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.142, allocations: 169.5 kB / 333.1 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.142, allocations: 0 / 333.1 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.142, allocations: 4 kB / 333.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.142, allocations: 0 / 333.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.1422, allocations: 83.95 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007367/0.143, allocations: 0.5043 MB / 333.7 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.1432, allocations: 122.5 kB / 333.8 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.1434, allocations: 112.8 kB / 333.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.1434, allocations: 0 / 333.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004556/0.1439, allocations: 254.6 kB / 334.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1439, allocations: 0 / 334.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009845/0.1449, allocations: 0.6108 MB / 334.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.145, allocations: 191.9 kB / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000708/0.1457, allocations: 0.5755 MB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.1458, allocations: 29.7 kB / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.1459, allocations: 117.1 kB / 335.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.1459, allocations: 27.62 kB / 335.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.146, allocations: 8 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1461, allocations: 330.8 kB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.1463, allocations: 80.06 kB / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.1465, allocations: 97.61 kB / 336.2 MB, free: 11.87 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002424/0.1467, allocations: 212.6 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1467, allocations: 0 / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007051/0.1474, allocations: 0.5057 MB / 336.9 MB, free: 11.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.1476, allocations: 152.5 kB / 337.1 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1476, allocations: 4 kB / 337.1 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1476, allocations: 0 / 337.1 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.419e-05/0.1476, allocations: 0 / 337.1 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.912e-06/0.1477, allocations: 0 / 337.1 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.1478, allocations: 23.89 kB / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.148, allocations: 97.3 kB / 337.2 MB, free: 10.79 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.0003998/0.1484, allocations: 404.1 kB / 337.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.895e-05/0.1484, allocations: 51.38 kB / 337.6 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.1486, allocations: 63.48 kB / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1486, allocations: 4.062 kB / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1486, allocations: 4 kB / 337.7 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1486, allocations: 7.969 kB / 337.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.1498, allocations: 0.9557 MB / 338.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.1498, allocations: 0 / 338.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-06/0.1498, allocations: 3.938 kB / 338.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1498, allocations: 4 kB / 338.7 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.759e-05/0.1498, allocations: 23.98 kB / 338.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1498, allocations: 0 / 338.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1499, allocations: 4 kB / 338.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000809/0.1507, allocations: 0.6556 MB / 339.4 MB, free: 8.434 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003413/0.151, allocations: 256.3 kB / 339.6 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.306e-05/0.1511, allocations: 12 kB / 339.6 MB, free: 8.152 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.1512, allocations: 23.89 kB / 339.6 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.1514, allocations: 55.92 kB / 339.7 MB, free: 8.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.1516, allocations: 101.2 kB / 339.8 MB, free: 7.977 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005125/0.1521, allocations: 422.8 kB / 340.2 MB, free: 7.566 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1521, allocations: 0 / 340.2 MB, free: 7.566 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.1524, allocations: 52 kB / 340.3 MB, free: 7.516 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.0001826/0.1526, allocations: 119.1 kB / 340.4 MB, free: 7.387 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000682/0.1533, allocations: 0.5399 MB / 340.9 MB, free: 6.785 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1533, allocations: 3.938 kB / 340.9 MB, free: 6.781 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004603/0.1538, allocations: 464.9 kB / 341.4 MB, free: 6.266 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007629/0.1546, allocations: 163 kB / 341.5 MB, free: 6.109 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.1559, allocations: 0.8374 MB / 342.4 MB, free: 5.246 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.1564, allocations: 0.8265 MB / 343.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.166e-05/0.1565, allocations: 12.88 kB / 343.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.1566, allocations: 11.44 kB / 343.2 MB, free: 4.367 MB / 286.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1566, allocations: 0 / 343.2 MB, free: 4.367 MB / 286.1 MB Notification: Performance of Templates: time 0.0108/0.1674, allocations: 6.571 MB / 349.8 MB, free: 13.63 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (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) 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