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.00162/0.00162, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.001836/0.001836, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.332/1.332, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 52.77 kB / 300 MB, free: 6.312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 49.44 MB / 349.4 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002958/0.1148, allocations: 1.61 MB / 351 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.1166, allocations: 0.8927 MB / 351.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.212e-05/0.1167, allocations: 0 / 351.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.789e-05/0.1169, allocations: 7.938 kB / 351.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.438e-05/0.117, allocations: 19.84 kB / 351.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.1172, allocations: 43.97 kB / 352 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.1174, allocations: 135.7 kB / 352.1 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.1175, allocations: 29.33 kB / 352.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006416/0.1182, allocations: 0.6356 MB / 352.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.1183, allocations: 87.61 kB / 352.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.468e-05/0.1184, allocations: 4 kB / 352.9 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.395e-05/0.1184, allocations: 4 kB / 352.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.724e-05/0.1185, allocations: 79.7 kB / 352.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.1187, allocations: 131 kB / 353.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003893/0.1191, allocations: 446.4 kB / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1191, allocations: 0 / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1191, allocations: 4 kB / 353.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1191, allocations: 3.938 kB / 353.5 MB, free: 0.7148 MB / 286.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.0008801/0.12, allocations: 0.8102 MB / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1201, allocations: 11.97 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.744e-05/0.1202, allocations: 44.47 kB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.1205, allocations: 294.1 kB / 354.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.1205, allocations: 8.375 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.1205, allocations: 8.375 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003796/0.1209, allocations: 173.9 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.121, allocations: 0 / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.121, allocations: 7.984 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.121, allocations: 7.938 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.1212, allocations: 83.95 kB / 354.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007477/0.1219, allocations: 0.5004 MB / 355.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.1222, allocations: 122.5 kB / 355.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.1224, allocations: 112.9 kB / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-06/0.1224, allocations: 0 / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004153/0.1228, allocations: 250.6 kB / 355.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.014e-06/0.1228, allocations: 0 / 355.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009666/0.1238, allocations: 0.6131 MB / 356.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.1239, allocations: 195.9 kB / 356.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006474/0.1246, allocations: 0.56 MB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/0.1246, allocations: 29.7 kB / 357.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.981e-05/0.1247, allocations: 113.1 kB / 357.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.637e-05/0.1247, allocations: 27.7 kB / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.1249, allocations: 105.3 kB / 357.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.125, allocations: 334.8 kB / 357.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.1252, allocations: 83.91 kB / 358 MB, free: 11.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.1254, allocations: 105.4 kB / 358.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004083/0.1258, allocations: 434.8 kB / 358.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1258, allocations: 0 / 358.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006972/0.1265, allocations: 0.5018 MB / 359 MB, free: 10.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.551e-05/0.1266, allocations: 152.5 kB / 359.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1267, allocations: 0 / 359.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1267, allocations: 0 / 359.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.428e-05/0.1267, allocations: 8.109 kB / 359.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.1267, allocations: 3.938 kB / 359.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.1269, allocations: 15.98 kB / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.127, allocations: 93.31 kB / 359.3 MB, free: 10.5 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.0003774/0.1274, allocations: 407.9 kB / 359.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.1275, allocations: 51.5 kB / 359.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.1276, allocations: 71.45 kB / 359.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1276, allocations: 4 kB / 359.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.1276, allocations: 0 / 359.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1276, allocations: 0 / 359.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.1289, allocations: 0.9556 MB / 360.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1289, allocations: 0 / 360.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.454e-06/0.129, allocations: 0 / 360.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.129, allocations: 7.938 kB / 360.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.129, allocations: 19.98 kB / 360.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.129, allocations: 4 kB / 360.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.129, allocations: 3.938 kB / 360.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008082/0.1298, allocations: 0.6665 MB / 361.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003503/0.1302, allocations: 260.3 kB / 361.7 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.1303, allocations: 12 kB / 361.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.1305, allocations: 11.98 kB / 361.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.1307, allocations: 67.84 kB / 361.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.81e-05/0.1308, allocations: 97.38 kB / 361.9 MB, free: 7.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005423/0.1314, allocations: 414.9 kB / 362.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.505e-06/0.1314, allocations: 0 / 362.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000345/0.1317, allocations: 59.84 kB / 362.3 MB, free: 7.219 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.0001769/0.1319, allocations: 131.1 kB / 362.5 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007189/0.1326, allocations: 0.536 MB / 363 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.1326, allocations: 4 kB / 363 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004623/0.1331, allocations: 465 kB / 363.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009019/0.134, allocations: 167.9 kB / 363.6 MB, free: 5.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.1357, allocations: 0.8634 MB / 364.5 MB, free: 4.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005504/0.1362, allocations: 0.8224 MB / 365.3 MB, free: 4.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.853e-05/0.1363, allocations: 12.81 kB / 365.3 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.337e-05/0.1364, allocations: 11.44 kB / 365.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1364, allocations: 0 / 365.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of Templates: time 0.1656/0.3019, allocations: 6.928 MB / 372.3 MB, free: 25.72 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