Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_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.000847/0.000847, allocations: 94.33 kB / 16.65 MB, free: 6.586 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.0009976/0.0009976, allocations: 187.3 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003556, allocations: 12.75 kB / 301.4 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1173, allocations: 50.42 MB / 351.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001904/0.1193, allocations: 1.266 MB / 353.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.1217, allocations: 0.8858 MB / 354 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1218, allocations: 0 / 354 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.122, allocations: 11.92 kB / 354 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.1222, allocations: 19.86 kB / 354 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004358/0.1226, allocations: 47.89 kB / 354.1 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.1229, allocations: 127.7 kB / 354.2 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.1231, allocations: 29.39 kB / 354.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.1242, allocations: 0.6239 MB / 354.8 MB, free: 436 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.1245, allocations: 91.61 kB / 354.9 MB, free: 344 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-05/0.1245, allocations: 4 kB / 354.9 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.285e-05/0.1246, allocations: 4 kB / 354.9 MB, free: 336 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.1248, allocations: 75.62 kB / 355 MB, free: 260 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002281/0.125, allocations: 152.7 kB / 355.2 MB, free: 100 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006582/0.1257, allocations: 442.3 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.1257, allocations: 0 / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1257, allocations: 0 / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.1257, allocations: 0 / 355.6 MB, free: 15.66 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.001184/0.1269, allocations: 0.7286 MB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.127, allocations: 12.03 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.1271, allocations: 44.38 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.1275, allocations: 286.2 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.1276, allocations: 12.38 kB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.1276, allocations: 8.375 kB / 356.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.128, allocations: 177.8 kB / 356.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.128, allocations: 0 / 356.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.1281, allocations: 8 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1281, allocations: 3.938 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.1283, allocations: 83.95 kB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008665/0.1292, allocations: 0.5042 MB / 357.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.1295, allocations: 122.5 kB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.1297, allocations: 108.9 kB / 357.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.1297, allocations: 0 / 357.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004512/0.1302, allocations: 246.6 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 3.597e-06/0.1302, allocations: 4 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001072/0.1313, allocations: 0.6109 MB / 358.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.1314, allocations: 195.9 kB / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007469/0.1321, allocations: 0.5639 MB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.589e-05/0.1322, allocations: 33.7 kB / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.635e-05/0.1323, allocations: 121 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.401e-05/0.1324, allocations: 31.61 kB / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.1324, allocations: 25.7 kB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1326, allocations: 330.8 kB / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.1327, allocations: 83.95 kB / 359.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.1329, allocations: 97.67 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.1334, allocations: 438.7 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1334, allocations: 0 / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006896/0.1341, allocations: 0.5009 MB / 360.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.1342, allocations: 152.5 kB / 361.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1342, allocations: 0 / 361.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1342, allocations: 4.031 kB / 361.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.819e-05/0.1343, allocations: 3.984 kB / 361.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.1343, allocations: 7.938 kB / 361.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.1345, allocations: 12 kB / 361.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.1346, allocations: 101.4 kB / 361.2 MB, free: 9.59 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.0004317/0.1351, allocations: 412 kB / 361.6 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.1351, allocations: 43.53 kB / 361.6 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.1353, allocations: 71.48 kB / 361.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1353, allocations: 0 / 361.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1353, allocations: 0 / 361.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1353, allocations: 0 / 361.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.1366, allocations: 0.9672 MB / 362.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1367, allocations: 4 kB / 362.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.693e-06/0.1367, allocations: 0 / 362.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.1367, allocations: 0 / 362.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/0.1367, allocations: 23.98 kB / 362.7 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.1367, allocations: 0 / 362.7 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.1367, allocations: 7.938 kB / 362.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008388/0.1376, allocations: 0.6555 MB / 363.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003678/0.138, allocations: 260.3 kB / 363.6 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.5e-05/0.1381, allocations: 12 kB / 363.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1382, allocations: 15.98 kB / 363.7 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.1384, allocations: 55.88 kB / 363.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.1385, allocations: 105.2 kB / 363.8 MB, free: 6.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005589/0.1391, allocations: 426.8 kB / 364.2 MB, free: 6.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.1391, allocations: 0 / 364.2 MB, free: 6.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000334/0.1394, allocations: 55.84 kB / 364.3 MB, free: 6.309 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.0001712/0.1396, allocations: 115.1 kB / 364.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006515/0.1403, allocations: 0.5353 MB / 364.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1403, allocations: 3.938 kB / 364.9 MB, free: 5.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004353/0.1407, allocations: 473 kB / 365.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008803/0.1416, allocations: 171.3 kB / 365.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.1431, allocations: 0.8686 MB / 366.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005452/0.1436, allocations: 0.8146 MB / 367.2 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1437, allocations: 20.86 kB / 367.3 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.1438, allocations: 11.44 kB / 367.3 MB, free: 3.137 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1438, allocations: 0 / 367.3 MB, free: 3.137 MB / 302.1 MB Notification: Performance of Templates: time 0.2173/0.3611, allocations: 6.678 MB / 374 MB, free: 24.54 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches