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.001078/0.001078, allocations: 108.8 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.5 kB / 306.3 MB, free: 1.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.106, allocations: 50.54 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002646/0.1087, allocations: 1.619 MB / 358.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.1104, allocations: 0.9279 MB / 359.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.089e-05/0.1105, allocations: 0 / 359.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.164e-05/0.1106, allocations: 11.92 kB / 359.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.363e-05/0.1107, allocations: 15.86 kB / 359.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002081/0.1109, allocations: 43.95 kB / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.1111, allocations: 131.6 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.1112, allocations: 33.39 kB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006554/0.1119, allocations: 0.6317 MB / 360.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.112, allocations: 87.61 kB / 360.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.382e-05/0.1121, allocations: 8 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.381e-05/0.1121, allocations: 7.938 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.1122, allocations: 75.75 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.1124, allocations: 127 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004371/0.1128, allocations: 454.3 kB / 360.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1128, allocations: 0 / 360.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1128, allocations: 0 / 360.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1128, allocations: 0 / 360.9 MB, free: 10.35 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.0007226/0.1136, allocations: 0.8141 MB / 361.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.1136, allocations: 12.02 kB / 361.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.1137, allocations: 44.47 kB / 361.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.114, allocations: 290.1 kB / 362.1 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.114, allocations: 8.375 kB / 362.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.114, allocations: 8.375 kB / 362.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003345/0.1144, allocations: 181.8 kB / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1144, allocations: 0 / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.1144, allocations: 7.984 kB / 362.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1144, allocations: 4 kB / 362.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.1146, allocations: 79.95 kB / 362.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006445/0.1153, allocations: 0.5042 MB / 362.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.1155, allocations: 122.5 kB / 363 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1157, allocations: 112.9 kB / 363.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.1157, allocations: 0 / 363.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003712/0.1161, allocations: 238.6 kB / 363.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.1161, allocations: 4 kB / 363.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009413/0.117, allocations: 0.6179 MB / 364 MB, free: 7.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.981e-05/0.1171, allocations: 191.9 kB / 364.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006262/0.1178, allocations: 0.5601 MB / 364.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.449e-05/0.1178, allocations: 37.64 kB / 364.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.1179, allocations: 113.1 kB / 364.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.067e-05/0.1179, allocations: 39.53 kB / 364.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.1181, allocations: 97.41 kB / 365 MB, free: 5.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1182, allocations: 338.8 kB / 365.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.1184, allocations: 79.95 kB / 365.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1186, allocations: 97.67 kB / 365.5 MB, free: 5.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/0.119, allocations: 437 kB / 365.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.119, allocations: 0 / 365.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000681/0.1197, allocations: 0.5018 MB / 366.4 MB, free: 4.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.186e-05/0.1198, allocations: 152.5 kB / 366.6 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1198, allocations: 32 / 366.6 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1198, allocations: 7.938 kB / 366.6 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.815e-05/0.1198, allocations: 0 / 366.6 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1198, allocations: 4 kB / 366.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.12, allocations: 12 kB / 366.6 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.1201, allocations: 101.2 kB / 366.7 MB, free: 4.133 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.000383/0.1205, allocations: 411.9 kB / 367.1 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.778e-05/0.1206, allocations: 39.53 kB / 367.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.566e-05/0.1207, allocations: 67.48 kB / 367.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1207, allocations: 8 kB / 367.2 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1207, allocations: 4.062 kB / 367.2 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1207, allocations: 3.984 kB / 367.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.1218, allocations: 0.9632 MB / 368.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1218, allocations: 0 / 368.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.168e-06/0.1219, allocations: 0 / 368.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1219, allocations: 0 / 368.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.1219, allocations: 19.98 kB / 368.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1219, allocations: 0 / 368.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.1219, allocations: 11.94 kB / 368.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007687/0.1227, allocations: 0.6595 MB / 368.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003031/0.123, allocations: 260.3 kB / 369.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.955e-05/0.1231, allocations: 12 kB / 369.1 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.1232, allocations: 11.98 kB / 369.2 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.1234, allocations: 55.88 kB / 369.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-05/0.1235, allocations: 105.2 kB / 369.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004934/0.124, allocations: 426.8 kB / 369.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.124, allocations: 0 / 369.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1243, allocations: 55.91 kB / 369.8 MB, free: 0.8438 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.0001669/0.1245, allocations: 115.2 kB / 369.9 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006057/0.1251, allocations: 0.5321 MB / 370.4 MB, free: 128 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1251, allocations: 0 / 370.4 MB, free: 128 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1388/0.2639, allocations: 463.7 kB / 370.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000988/0.265, allocations: 172.8 kB / 371 MB, free: 20.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.2663, allocations: 0.8687 MB / 371.9 MB, free: 20.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.2666, allocations: 0.8251 MB / 372.7 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.352e-05/0.2667, allocations: 15.59 kB / 372.8 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.869e-05/0.2667, allocations: 11.34 kB / 372.8 MB, free: 19.54 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2667, allocations: 1.031 kB / 372.8 MB, free: 19.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01119/0.2779, allocations: 6.948 MB / 379.7 MB, free: 18.34 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